All Products
Search
Document Center

:Logback Appender

Last Updated:Aug 11, 2023

This topic describes Alibaba Cloud Logback Appenders.

Logback is an open source project that is developed by the founder of Log4j. You can use Logback to specify the output destination and format of logs. You can also specify the severity level of each log entry to implement a fine-grained control on log generation.

You can set the destination of logs to Simple Log Service by using an Alibaba Cloud Logback Appender. The following example shows the format of a log entry that is uploaded to Simple Log Service. For more information about Alibaba Cloud Logback Appenders, visit Logback Appender.

level: ERROR
location: com.aliyun.openservices.log.logback.example.LogbackAppenderExample.main(LogbackAppenderExample.java:18)
message: error log
throwable: java.lang.RuntimeException: xxx
thread: main
time: 2018-01-02T03:15+0000
log: 2018-01-02 11:15:29,682 ERROR [main] com.aliyun.openservices.log.logback.example.LogbackAppenderExample: error log
__source__: xxx
__topic__: yyy