Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Open Source Projects
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Liutauras Vilda
Paul Clapham
Sheriffs:
paul wheaton
Tim Cooke
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Piet Souris
Bartenders:
Mike London
Forum:
Other Open Source Projects
Setting different log files with slf4j
Peter Benda
Ranch Hand
Posts: 83
posted 5 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
can i setup in slf4j
that i will have log file : server.log
and once a day it will be rolled to server.YYYY-MM-DD.log
currently i got only :
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> <Pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern> </encoder> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <FileNamePattern>logs/server.%d{yyyy-MM-dd}.log</FileNamePattern> <maxHistory>7</maxHistory> </rollingPolicy> </appender>
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
using regex in log4j2 config file
Not correct work TimeBasedRollingPolicy
How to reload a programmed log4j2 configuration
org.xml.sax.SAXParseException:cvc-elt.1: Cannot find the declaration of element 'configuration'
Log4j2 pattern
More...