Java Doc for POILogger.java in  » Collaboration » poi-3.0.2-beta2 » org » apache » poi » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Collaboration » poi 3.0.2 beta2 » org.apache.poi.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.poi.util.POILogger

All known Subclasses:   org.apache.poi.util.CommonsLogger,  org.apache.poi.util.SystemOutLogger,  org.apache.poi.util.NullLogger,
POILogger
abstract public class POILogger (Code)
A logger interface that strives to make it as easy as possible for developers to write log calls, while simultaneously making those calls as cheap as possible by performing lazy evaluation of the log message.


author:
   Marc Johnson (mjohnson at apache dot org)
author:
   Glen Stampoultzis (glens at apache.org)
author:
   Nicola Ken Barozzi (nicolaken at apache.org)



Field Summary
final public static  intDEBUG
    
final public static  intERROR
    
final public static  intFATAL
    
final public static  intINFO
    
final public static  intWARN
    

Constructor Summary
 POILogger()
     package scope so it cannot be instantiated outside of the util package.

Method Summary
abstract public  booleancheck(int level)
    
abstract public  voidinitialize(String cat)
    
abstract public  voidlog(int level, Object obj1)
    
public  voidlog(int level, Object obj1, Object obj2)
     Log a message.
public  voidlog(int level, Object obj1, Object obj2, Object obj3)
     Log a message.
public  voidlog(int level, Object obj1, Object obj2, Object obj3, Object obj4)
     Log a message.
public  voidlog(int level, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5)
     Log a message.
public  voidlog(int level, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6)
     Log a message.
public  voidlog(int level, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7)
     Log a message.
public  voidlog(int level, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8)
     Log a message.
public  voidlog(int level, Object obj1, Throwable exception)
     Log a message
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  obj1 - The object to log.
public  voidlog(int level, Object obj1, Object obj2, Throwable exception)
     Log a message.
public  voidlog(int level, Object obj1, Object obj2, Object obj3, Throwable exception)
     Log a message.
public  voidlog(int level, Object obj1, Object obj2, Object obj3, Object obj4, Throwable exception)
     Log a message.
public  voidlog(int level, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Throwable exception)
     Log a message.
public  voidlog(int level, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Throwable exception)
     Log a message.
public  voidlog(int level, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Throwable exception)
     Log a message.
public  voidlog(int level, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Throwable exception)
     Log a message.
public  voidlogFormatted(int level, String message, Object obj1)
     Logs a formated message.
public  voidlogFormatted(int level, String message, Object obj1, Object obj2)
     Logs a formated message.
public  voidlogFormatted(int level, String message, Object obj1, Object obj2, Object obj3)
     Logs a formated message.
public  voidlogFormatted(int level, String message, Object obj1, Object obj2, Object obj3, Object obj4)
     Logs a formated message.

Field Detail
DEBUG
final public static int DEBUG(Code)



ERROR
final public static int ERROR(Code)



FATAL
final public static int FATAL(Code)



INFO
final public static int INFO(Code)



WARN
final public static int WARN(Code)




Constructor Detail
POILogger
POILogger()(Code)
package scope so it cannot be instantiated outside of the util package. You need a POILogger? Go to the POILogFactory for one




Method Detail
check
abstract public boolean check(int level)(Code)
Check if a logger is enabled to log at the specified level
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL



initialize
abstract public void initialize(String cat)(Code)



log
abstract public void log(int level, Object obj1)(Code)



log
public void log(int level, Object obj1, Object obj2)(Code)
Log a message. Lazily appends Object parameters together.
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  obj1 - first object to place in the message
Parameters:
  obj2 - second object to place in the message



log
public void log(int level, Object obj1, Object obj2, Object obj3)(Code)
Log a message. Lazily appends Object parameters together.
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  obj1 - first Object to place in the message
Parameters:
  obj2 - second Object to place in the message
Parameters:
  obj3 - third Object to place in the message



log
public void log(int level, Object obj1, Object obj2, Object obj3, Object obj4)(Code)
Log a message. Lazily appends Object parameters together.
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  obj1 - first Object to place in the message
Parameters:
  obj2 - second Object to place in the message
Parameters:
  obj3 - third Object to place in the message
Parameters:
  obj4 - fourth Object to place in the message



log
public void log(int level, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5)(Code)
Log a message. Lazily appends Object parameters together.
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  obj1 - first Object to place in the message
Parameters:
  obj2 - second Object to place in the message
Parameters:
  obj3 - third Object to place in the message
Parameters:
  obj4 - fourth Object to place in the message
Parameters:
  obj5 - fifth Object to place in the message



log
public void log(int level, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6)(Code)
Log a message. Lazily appends Object parameters together.
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  obj1 - first Object to place in the message
Parameters:
  obj2 - second Object to place in the message
Parameters:
  obj3 - third Object to place in the message
Parameters:
  obj4 - fourth Object to place in the message
Parameters:
  obj5 - fifth Object to place in the message
Parameters:
  obj6 - sixth Object to place in the message



log
public void log(int level, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7)(Code)
Log a message. Lazily appends Object parameters together.
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  obj1 - first Object to place in the message
Parameters:
  obj2 - second Object to place in the message
Parameters:
  obj3 - third Object to place in the message
Parameters:
  obj4 - fourth Object to place in the message
Parameters:
  obj5 - fifth Object to place in the message
Parameters:
  obj6 - sixth Object to place in the message
Parameters:
  obj7 - seventh Object to place in the message



log
public void log(int level, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8)(Code)
Log a message. Lazily appends Object parameters together.
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  obj1 - first Object to place in the message
Parameters:
  obj2 - second Object to place in the message
Parameters:
  obj3 - third Object to place in the message
Parameters:
  obj4 - fourth Object to place in the message
Parameters:
  obj5 - fifth Object to place in the message
Parameters:
  obj6 - sixth Object to place in the message
Parameters:
  obj7 - seventh Object to place in the message
Parameters:
  obj8 - eighth Object to place in the message



log
public void log(int level, Object obj1, Throwable exception)(Code)
Log a message
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  obj1 - The object to log. This is converted to a string.
Parameters:
  exception - An exception to be logged



log
public void log(int level, Object obj1, Object obj2, Throwable exception)(Code)
Log a message. Lazily appends Object parameters together.
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  obj1 - first Object to place in the message
Parameters:
  obj2 - second Object to place in the message
Parameters:
  exception - An exception to be logged



log
public void log(int level, Object obj1, Object obj2, Object obj3, Throwable exception)(Code)
Log a message. Lazily appends Object parameters together.
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  obj1 - first Object to place in the message
Parameters:
  obj2 - second Object to place in the message
Parameters:
  obj3 - third object to place in the message
Parameters:
  exception - An error message to be logged



log
public void log(int level, Object obj1, Object obj2, Object obj3, Object obj4, Throwable exception)(Code)
Log a message. Lazily appends Object parameters together.
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  obj1 - first Object to place in the message
Parameters:
  obj2 - second Object to place in the message
Parameters:
  obj3 - third object to place in the message
Parameters:
  obj4 - fourth object to place in the message
Parameters:
  exception - An exception to be logged



log
public void log(int level, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Throwable exception)(Code)
Log a message. Lazily appends Object parameters together.
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  obj1 - first Object to place in the message
Parameters:
  obj2 - second Object to place in the message
Parameters:
  obj3 - third object to place in the message
Parameters:
  obj4 - fourth object to place in the message
Parameters:
  obj5 - fifth object to place in the message
Parameters:
  exception - An exception to be logged



log
public void log(int level, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Throwable exception)(Code)
Log a message. Lazily appends Object parameters together.
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  obj1 - first Object to place in the message
Parameters:
  obj2 - second Object to place in the message
Parameters:
  obj3 - third object to place in the message
Parameters:
  obj4 - fourth object to place in the message
Parameters:
  obj5 - fifth object to place in the message
Parameters:
  obj6 - sixth object to place in the message
Parameters:
  exception - An exception to be logged



log
public void log(int level, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Throwable exception)(Code)
Log a message. Lazily appends Object parameters together.
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  obj1 - first Object to place in the message
Parameters:
  obj2 - second Object to place in the message
Parameters:
  obj3 - third object to place in the message
Parameters:
  obj4 - fourth object to place in the message
Parameters:
  obj5 - fifth object to place in the message
Parameters:
  obj6 - sixth object to place in the message
Parameters:
  obj7 - seventh object to place in the message
Parameters:
  exception - An exception to be logged



log
public void log(int level, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Throwable exception)(Code)
Log a message. Lazily appends Object parameters together.
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  obj1 - first Object to place in the message
Parameters:
  obj2 - second Object to place in the message
Parameters:
  obj3 - third object to place in the message
Parameters:
  obj4 - fourth object to place in the message
Parameters:
  obj5 - fifth object to place in the message
Parameters:
  obj6 - sixth object to place in the message
Parameters:
  obj7 - seventh object to place in the message
Parameters:
  obj8 - eighth object to place in the message
Parameters:
  exception - An exception to be logged



logFormatted
public void logFormatted(int level, String message, Object obj1)(Code)
Logs a formated message. The message itself may contain % characters as place holders. This routine will attempt to match the placeholder by looking at the type of parameter passed to obj1.

If the parameter is an array, it traverses the array first and matches parameters sequentially against the array items. Otherwise the parameters after message are matched in order.

If the place holder matches against a number it is printed as a whole number. This can be overridden by specifying a precision in the form %n.m where n is the padding for the whole part and m is the number of decimal places to display. n can be excluded if desired. n and m may not be more than 9.

If the last parameter (after flattening) is a Throwable it is logged specially.
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  message - The message to log.
Parameters:
  obj1 - The first object to match against.




logFormatted
public void logFormatted(int level, String message, Object obj1, Object obj2)(Code)
Logs a formated message. The message itself may contain % characters as place holders. This routine will attempt to match the placeholder by looking at the type of parameter passed to obj1.

If the parameter is an array, it traverses the array first and matches parameters sequentially against the array items. Otherwise the parameters after message are matched in order.

If the place holder matches against a number it is printed as a whole number. This can be overridden by specifying a precision in the form %n.m where n is the padding for the whole part and m is the number of decimal places to display. n can be excluded if desired. n and m may not be more than 9.

If the last parameter (after flattening) is a Throwable it is logged specially.
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  message - The message to log.
Parameters:
  obj1 - The first object to match against.
Parameters:
  obj2 - The second object to match against.




logFormatted
public void logFormatted(int level, String message, Object obj1, Object obj2, Object obj3)(Code)
Logs a formated message. The message itself may contain % characters as place holders. This routine will attempt to match the placeholder by looking at the type of parameter passed to obj1.

If the parameter is an array, it traverses the array first and matches parameters sequentially against the array items. Otherwise the parameters after message are matched in order.

If the place holder matches against a number it is printed as a whole number. This can be overridden by specifying a precision in the form %n.m where n is the padding for the whole part and m is the number of decimal places to display. n can be excluded if desired. n and m may not be more than 9.

If the last parameter (after flattening) is a Throwable it is logged specially.
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  message - The message to log.
Parameters:
  obj1 - The first object to match against.
Parameters:
  obj2 - The second object to match against.
Parameters:
  obj3 - The third object to match against.




logFormatted
public void logFormatted(int level, String message, Object obj1, Object obj2, Object obj3, Object obj4)(Code)
Logs a formated message. The message itself may contain % characters as place holders. This routine will attempt to match the placeholder by looking at the type of parameter passed to obj1.

If the parameter is an array, it traverses the array first and matches parameters sequentially against the array items. Otherwise the parameters after message are matched in order.

If the place holder matches against a number it is printed as a whole number. This can be overridden by specifying a precision in the form %n.m where n is the padding for the whole part and m is the number of decimal places to display. n can be excluded if desired. n and m may not be more than 9.

If the last parameter (after flattening) is a Throwable it is logged specially.
Parameters:
  level - One of DEBUG, INFO, WARN, ERROR, FATAL
Parameters:
  message - The message to log.
Parameters:
  obj1 - The first object to match against.
Parameters:
  obj2 - The second object to match against.
Parameters:
  obj3 - The third object to match against.
Parameters:
  obj4 - The forth object to match against.




Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.