On Thursday 27 December 2001 08:26 am, you wrote: > Hi, > > one question regarding the server.xml (now the environment.xml): > [..] > <logs> > <category name="" target="default" priority="DEBUG" /> > <category name="try" target="try-target" priority="DEBUG" /> > > <log-target name="default" location="/logs/socket.log" /> > <log-target name="try-target" location="/logs/try.log" /> > </logs> > [..] > How is it possible to get access to the /logs/try.log-File? > If a Blockclass extends AbstractLoggable, "getLogger" is enough to get > access to the "default"-target. That works fine with the other blocks.
You should extend AbstractLogEnabled because AbstractLoggable is deprecated (it should still work though). > > But for the "try", it doesn't work. I already tried the > DefaultLogKitManager (getLogger(String categoryName)), but unfortunately I > only get an NullPointerException at that point. I don't understand how you have access to DefaultLogKitManager? > > Any idea? If you want Phoenix to use DefaultLogKitManager internally you have to add version="1.1" attribute to the logging configuration ( <logs version="1.1"> ... ). Let me know if this works for you! Mircea -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>