We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a custom logger which can replace the existing Lombok, Sl4j log and can push logs as a stream to Kafka. See this.
log42j.xml
Tasks
The text was updated successfully, but these errors were encountered:
This is the xml file I am using for sending logs to kafka
<?xml version="1.0" encoding="UTF-8"?> <Configuration status="info" name="spring-boot-kafka-log"> <Properties> <Property name="kafka.topic">${env:KAFKA_LOGS_TOPIC}</Property> <Property name="kafka.bootstrap.servers">${env:BOOTSTRAP_SERVERS}</Property> </Properties> <Appenders> <Kafka name="KafkaLogAppender" topic="${kafka.topic}"> <JSONLayout /> <!-- <PatternLayout pattern="%date %message"/> --> <Property name="bootstrap.servers">${kafka.bootstrap.servers}</Property> </Kafka> <Console name="stdout" target="SYSTEM_OUT"> <PatternLayout pattern="%d{HH:mm:ss.SSS} stdout %highlight(%-5p) [%-7t] %F:%L - %m%n" /> </Console> <Console name="stderr" target="SYSTEM_OUT"> <PatternLayout pattern="%d{HH:mm:ss.SSS} stderr %highlight(%-5p) [%-7t] %F:%L - %m%n" /> </Console> </Appenders> <Loggers> <Root level="INFO"> <AppenderRef ref="KafkaLogAppender" /> <AppenderRef ref="stdout" /> <AppenderRef ref="stderr" /> </Root> <Logger name="org.apache.kafka" level="WARN" /> </Loggers> </Configuration>
Sorry, something went wrong.
No branches or pull requests
Create a custom logger which can replace the existing Lombok, Sl4j log and can push logs as a stream to Kafka. See this.
log42j.xml
in spring, try to inject is using Utils to all the other repos.Tasks
The text was updated successfully, but these errors were encountered: