Simple logger, how to ?
Posted
by Andrei Ciobanu
on Stack Overflow
See other posts from Stack Overflow
or by Andrei Ciobanu
Published on 2010-05-19T12:17:26Z
Indexed on
2010/05/19
12:20 UTC
Read the original article
Hit count: 256
java
Hello, I want to write a default Logger for my application. Currently I am using the default Java API Class Logger .
I was wondering if it's possible to format my logs to look somthing like this:
[level] [dd:MM:YYYY] [hh:mm:ss] message
The logger should also be able to print the messages into the System.out and into a file ? Where should I look for this functionality ? Can you please give me some code snippets ?
© Stack Overflow or respective owner