using org.apache.log, you can do the following, or modify for your needs

Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
PatternFormatter formatter = new PatternFormatter( "
[%{priority}]:%{message}\n%{throwable}" );
LogTarget target = new StreamTarget(System.out, formatter);
hierarchy.setDefaultLogTarget(target);
Logger log = hierarchy.getLoggerFor("fop");

JohnPT



                                                                                
                                                        
                    [EMAIL PROTECTED]                                           
                      
                    APACHE.ORG                                                
To:     "'[EMAIL PROTECTED]'"                       
                                                                               
<[EMAIL PROTECTED]>                                
                    12/26/01 03:56 PM                                         
cc:                                                       
                    Please respond to fop-user                                
Subject:     [ERROR]: Logger not set                      
                                                                                
                                                        
                                                                                
                                                        




How does one set the logger ?

Thanks
Lakshmi








Reply via email to