# Console Appender
This appender uses node’s console object to write log events.
Be aware that writing a high volume of output to the console can make your application use a lot of memory.
If you experience this problem, try switching to the stdout
appender.
# Configuration
type - console
layout - object (optional, defaults to coloredLayout
) - see layouts
TIP
Note that all log events are output using console.log
regardless of the event's level (so ERROR
events will not be logged using console.error
).
# Example
import {Logger} from "@tsed/logger";
const logger = new Logger("loggerName");
logger.appenders.set("console-log", {
type: "console"
});
1
2
3
4
5
6
7
2
3
4
5
6
7
Last Updated: 10/26/2023, 6:30:07 AM
Other topics
- Console Appender
- File Appender
- Date Rolling File Appender
- Connect Appender
- Standard Out Appender
- Standard Error Appender
- Insight Appender
- LogEntries Appender
- LogStash HTTP Appender
- LogStash UDP Appender
- Loggly Appender
- RabbitMQ Appender
- Seq Appender
- Slack Appender
- SMTP Appender
- Basic layout
- Colored layout
- Dummy layout
- Message Pass-Through layout
- Object layout
- Json layout
- Pattern layout