Embedded Tomcat logging over logback / sl4j -


how can make embedded tomcat write logs on logback? found info using standalone tomcat log4j. how setup embedded tomcat , logback?

these maven dependencies:

<dependency>     <groupid>ch.qos.logback</groupid>     <artifactid>logback-core</artifactid>     <version>${logback.version}</version> </dependency> <dependency>     <groupid>org.apache.tomcat.embed</groupid>     <artifactid>tomcat-embed-core</artifactid>     <version>${tomcat.version}</version> </dependency> <dependency>     <groupid>org.apache.tomcat.embed</groupid>     <artifactid>tomcat-embed-logging-juli</artifactid>     <version>${tomcat.version}</version> </dependency> <dependency>     <groupid>org.apache.tomcat.embed</groupid>     <artifactid>tomcat-embed-logging-log4j</artifactid>     <version>${tomcat.version}</version> </dependency> <dependency>     <groupid>org.slf4j</groupid>     <artifactid>log4j-over-slf4j</artifactid>     <version>${sl4j.version}</version> </dependency> <dependency>     <groupid>org.slf4j</groupid>     <artifactid>jul-to-slf4j</artifactid>     <version>${sl4j.version}</version> </dependency> 

i know spring boot tomcat logging integration automatically. in case cannot use spring.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -