Custom Processor and Logging

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Custom Processor and Logging

Hank Ratzesberger

I have mostly working custom processor, but I cannot get any logging to
help me solve a last few issues.

I have mostly copied from other code I have seen, e.g.

static private Logger logger = LoggerFactory.createLogger
(MSeedProcessor.class);

if (logger.isDebugEnabled()) {
   logger.debug("format: " + getFormat() );
   logger.debug("zeroTime: " + getZeroTime() );
}

Do I need my own statement in config?

     <category name="org.nees.central.processor.mseed">
         <priority value="debug"/>
     </category>

Seems obvious now that I am writing this, will try it now.

--Hank



Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Custom Processor and Logging

Alessandro Vernet
Administrator
Hi Hank,

On Jan 13, 2009, at 11:22 AM, Hank Ratzesberger wrote:

> I have mostly copied from other code I have seen, e.g.
>
> static private Logger logger = LoggerFactory.createLogger
> (MSeedProcessor.class);
> [...]
> Seems obvious now that I am writing this, will try it now.

What you have there looks just fine to me as well :). You'll let us  
know if this doesn't work the way you would expect it to.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws