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
Tim Cooke
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
Other Open Source Projects
Problem with log4j
Jaaouane Aymen
Greenhorn
Posts: 29
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello All,
I want to add a file appender for log4j.
i add theses lines to my log4j.properties as mentioned in log4j documentation:
log4j.rootLogger=INFO, stdout, fedexday, FILE
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.FILE=org.apache.log4j.RollingFileAppender
log4j.appender.FILE.File=a.log
but alwayes i have an emty file a.log ???
amit punekar
Ranch Hand
Posts: 544
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello,
how you are using this logger in your application code?
Regards,
amit
endswel shui
Ranch Hand
Posts: 33
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
amit punekar wrote:
Hello,
how you are using this logger in your application code?
Regards,
amit
yes, type some code in your app, is better
just demo to simulate is ok
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
log4j updating wrong file
log4j File-Name
Logging into different files based on parameters
Log4j Grouping application logs
Question: How to let different loggers write to different log files?
More...