Java Doc for SimpleLogger.java in  » Development » SLF4J » org » slf4j » impl » 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 » Development » SLF4J » org.slf4j.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.slf4j.helpers.MarkerIgnoringBase
      org.slf4j.impl.SimpleLogger

SimpleLogger
public class SimpleLogger extends MarkerIgnoringBase (Code)
A simple (and direct) implementation that logs messages of level INFO or higher on the console (System.err).

The output includes the relative time in milliseconds, thread name, the level, logger name, and the message followed by the line separator for the host. In log4j terms it amounts to the "%r [%t] %level %logger - %m%n" pattern.

Sample output follows.

 176 [main] INFO examples.Sort - Populating an array of 2 elements in reverse order.
 225 [main] INFO examples.SortAlgo - Entered the sort method.
 304 [main] INFO examples.SortAlgo - Dump of integer array:
 317 [main] INFO examples.SortAlgo - Element [0] = 0
 331 [main] INFO examples.SortAlgo - Element [1] = 1
 343 [main] INFO examples.Sort - The next log statement should be an error message.
 346 [main] ERROR examples.SortAlgo - Tried to dump an uninitialized array.
 at org.log4j.examples.SortAlgo.dump(SortAlgo.java:58)
 at org.log4j.examples.Sort.main(Sort.java:64)
 467 [main] INFO  examples.Sort - Exiting main method.
 

author:
   Ceki Gülcü


Field Summary
final public static  StringLINE_SEPARATOR
    
 Stringname
    

Constructor Summary
 SimpleLogger(String name)
     Package access allows only SimpleLoggerFactory to instantiate SimpleLogger instances.

Method Summary
public  voiddebug(String msg)
     A NOP implementation, as this logger is permanently disabled for the DEBUG level.
public  voiddebug(String format, Object param1)
     A NOP implementation, as this logger is permanently disabled for the DEBUG level.
public  voiddebug(String format, Object param1, Object param2)
     A NOP implementation, as this logger is permanently disabled for the DEBUG level.
public  voiddebug(String format, Object[] argArray)
    
public  voiddebug(String msg, Throwable t)
     A NOP implementation, as this logger is permanently disabled for the DEBUG level.
public  voiderror(String msg)
     A simple implementation which always logs messages of level ERROR according to the format outlined above.
public  voiderror(String format, Object arg)
     Perform single parameter substitution before logging the message of level ERROR according to the format outlined above.
public  voiderror(String format, Object arg1, Object arg2)
     Perform double parameter substitution before logging the message of level ERROR according to the format outlined above.
public  voiderror(String format, Object[] argArray)
     Perform double parameter substitution before logging the message of level ERROR according to the format outlined above.
public  voiderror(String msg, Throwable t)
     Log a message of level ERROR, including an exception.
public  StringgetName()
    
public  voidinfo(String msg)
     A simple implementation which always logs messages of level INFO according to the format outlined above.
public  voidinfo(String format, Object arg)
     Perform single parameter substitution before logging the message of level INFO according to the format outlined above.
public  voidinfo(String format, Object arg1, Object arg2)
     Perform double parameter substitution before logging the message of level INFO according to the format outlined above.
public  voidinfo(String format, Object[] argArray)
     Perform double parameter substitution before logging the message of level INFO according to the format outlined above.
public  voidinfo(String msg, Throwable t)
     Log a message of level INFO, including an exception.
public  booleanisDebugEnabled()
     Always returns false.
public  booleanisErrorEnabled()
     Always returns true.
public  booleanisInfoEnabled()
     Always returns true.
public  booleanisTraceEnabled()
     Always returns false.
public  booleanisWarnEnabled()
     Always returns true.
public  voidtrace(String msg)
     A NOP implementation, as this logger is permanently disabled for the TRACE level.
public  voidtrace(String format, Object param1)
     A NOP implementation, as this logger is permanently disabled for the TRACE level.
public  voidtrace(String format, Object param1, Object param2)
     A NOP implementation, as this logger is permanently disabled for the TRACE level.
public  voidtrace(String format, Object[] argArray)
    
public  voidtrace(String msg, Throwable t)
     A NOP implementation, as this logger is permanently disabled for the TRACE level.
public  voidwarn(String msg)
     A simple implementation which always logs messages of level WARN according to the format outlined above.
public  voidwarn(String format, Object arg)
     Perform single parameter substitution before logging the message of level WARN according to the format outlined above.
public  voidwarn(String format, Object arg1, Object arg2)
     Perform double parameter substitution before logging the message of level WARN according to the format outlined above.
public  voidwarn(String format, Object[] argArray)
     Perform double parameter substitution before logging the message of level WARN according to the format outlined above.
public  voidwarn(String msg, Throwable t)
     Log a message of level WARN, including an exception.

Field Detail
LINE_SEPARATOR
final public static String LINE_SEPARATOR(Code)



name
String name(Code)




Constructor Detail
SimpleLogger
SimpleLogger(String name)(Code)
Package access allows only SimpleLoggerFactory to instantiate SimpleLogger instances.




Method Detail
debug
public void debug(String msg)(Code)
A NOP implementation, as this logger is permanently disabled for the DEBUG level.



debug
public void debug(String format, Object param1)(Code)
A NOP implementation, as this logger is permanently disabled for the DEBUG level.



debug
public void debug(String format, Object param1, Object param2)(Code)
A NOP implementation, as this logger is permanently disabled for the DEBUG level.



debug
public void debug(String format, Object[] argArray)(Code)



debug
public void debug(String msg, Throwable t)(Code)
A NOP implementation, as this logger is permanently disabled for the DEBUG level.



error
public void error(String msg)(Code)
A simple implementation which always logs messages of level ERROR according to the format outlined above.



error
public void error(String format, Object arg)(Code)
Perform single parameter substitution before logging the message of level ERROR according to the format outlined above.



error
public void error(String format, Object arg1, Object arg2)(Code)
Perform double parameter substitution before logging the message of level ERROR according to the format outlined above.



error
public void error(String format, Object[] argArray)(Code)
Perform double parameter substitution before logging the message of level ERROR according to the format outlined above.



error
public void error(String msg, Throwable t)(Code)
Log a message of level ERROR, including an exception.



getName
public String getName()(Code)



info
public void info(String msg)(Code)
A simple implementation which always logs messages of level INFO according to the format outlined above.



info
public void info(String format, Object arg)(Code)
Perform single parameter substitution before logging the message of level INFO according to the format outlined above.



info
public void info(String format, Object arg1, Object arg2)(Code)
Perform double parameter substitution before logging the message of level INFO according to the format outlined above.



info
public void info(String format, Object[] argArray)(Code)
Perform double parameter substitution before logging the message of level INFO according to the format outlined above.



info
public void info(String msg, Throwable t)(Code)
Log a message of level INFO, including an exception.



isDebugEnabled
public boolean isDebugEnabled()(Code)
Always returns false. always false



isErrorEnabled
public boolean isErrorEnabled()(Code)
Always returns true.



isInfoEnabled
public boolean isInfoEnabled()(Code)
Always returns true.



isTraceEnabled
public boolean isTraceEnabled()(Code)
Always returns false. always false



isWarnEnabled
public boolean isWarnEnabled()(Code)
Always returns true.



trace
public void trace(String msg)(Code)
A NOP implementation, as this logger is permanently disabled for the TRACE level.



trace
public void trace(String format, Object param1)(Code)
A NOP implementation, as this logger is permanently disabled for the TRACE level.



trace
public void trace(String format, Object param1, Object param2)(Code)
A NOP implementation, as this logger is permanently disabled for the TRACE level.



trace
public void trace(String format, Object[] argArray)(Code)



trace
public void trace(String msg, Throwable t)(Code)
A NOP implementation, as this logger is permanently disabled for the TRACE level.



warn
public void warn(String msg)(Code)
A simple implementation which always logs messages of level WARN according to the format outlined above.



warn
public void warn(String format, Object arg)(Code)
Perform single parameter substitution before logging the message of level WARN according to the format outlined above.



warn
public void warn(String format, Object arg1, Object arg2)(Code)
Perform double parameter substitution before logging the message of level WARN according to the format outlined above.



warn
public void warn(String format, Object[] argArray)(Code)
Perform double parameter substitution before logging the message of level WARN according to the format outlined above.



warn
public void warn(String msg, Throwable t)(Code)
Log a message of level WARN, including an exception.



Methods inherited from org.slf4j.helpers.MarkerIgnoringBase
public void debug(Marker marker, String msg)(Code)(Java Doc)
public void debug(Marker marker, String format, Object arg)(Code)(Java Doc)
public void debug(Marker marker, String format, Object arg1, Object arg2)(Code)(Java Doc)
public void debug(Marker marker, String format, Object[] argArray)(Code)(Java Doc)
public void debug(Marker marker, String msg, Throwable t)(Code)(Java Doc)
public void error(Marker marker, String msg)(Code)(Java Doc)
public void error(Marker marker, String format, Object arg)(Code)(Java Doc)
public void error(Marker marker, String format, Object arg1, Object arg2)(Code)(Java Doc)
public void error(Marker marker, String format, Object[] argArray)(Code)(Java Doc)
public void error(Marker marker, String msg, Throwable t)(Code)(Java Doc)
public void info(Marker marker, String msg)(Code)(Java Doc)
public void info(Marker marker, String format, Object arg)(Code)(Java Doc)
public void info(Marker marker, String format, Object arg1, Object arg2)(Code)(Java Doc)
public void info(Marker marker, String format, Object[] argArray)(Code)(Java Doc)
public void info(Marker marker, String msg, Throwable t)(Code)(Java Doc)
public boolean isDebugEnabled(Marker marker)(Code)(Java Doc)
public boolean isErrorEnabled(Marker marker)(Code)(Java Doc)
public boolean isInfoEnabled(Marker marker)(Code)(Java Doc)
public boolean isTraceEnabled(Marker marker)(Code)(Java Doc)
public boolean isWarnEnabled(Marker marker)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void trace(Marker marker, String msg)(Code)(Java Doc)
public void trace(Marker marker, String format, Object arg)(Code)(Java Doc)
public void trace(Marker marker, String format, Object arg1, Object arg2)(Code)(Java Doc)
public void trace(Marker marker, String format, Object[] argArray)(Code)(Java Doc)
public void trace(Marker marker, String msg, Throwable t)(Code)(Java Doc)
public void warn(Marker marker, String msg)(Code)(Java Doc)
public void warn(Marker marker, String format, Object arg)(Code)(Java Doc)
public void warn(Marker marker, String format, Object arg1, Object arg2)(Code)(Java Doc)
public void warn(Marker marker, String format, Object[] argArray)(Code)(Java Doc)
public void warn(Marker marker, String msg, Throwable t)(Code)(Java Doc)

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.