-
1. Re: Write my own log
thejavafreak Oct 7, 2008 1:43 PM (in response to charlscross)Is there anything specific that you want on your log or your log behaviour? What makes it different from the regular log?
-
2. Re: Write my own log
charlscross Oct 7, 2008 3:28 PM (in response to charlscross)Well, I want a log file where the only things that can be written are my log annotations, not jboss debug log, not the query's, etc...
-
3. Re: Write my own log
asiandub Oct 7, 2008 4:13 PM (in response to charlscross)assuming you are using log4j or java.commons.logging, all you need to do is writing your own (file-)appender. appenders are individually configurable and can log what you want exactly where you want...
see here for some more sophisticated documentation, or use google for other sources.
cheers,
jan -
4. Re: Write my own log
charlscross Oct 7, 2008 4:17 PM (in response to charlscross)Thank you everyone! I'll try tonight!
But how can I tell the logger just to write my beans messages?? -
5. Re: Write my own log
asiandub Oct 7, 2008 5:14 PM (in response to charlscross)configure your appender on a per-package or even per-class base. tell it just to log output from your bean classes.
-