creates a new console transport.
Optional
formatter: ConsoleFormatterthe formatter to use for log entries. defaults to ConsoleFormatter
outputs a log entry to the console. if the entry has additional arguments, they are passed to console.log separately to maintain proper formatting and object inspection.
the log entry to output
transport that outputs log entries to the console. uses the console formatter by default but can accept custom formatters.
Example: basic usage
Example: with custom formatter