Java Doc for BasicLevel.java in  » Development » Monolog » org » objectweb » util » monolog » api » 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 » Monolog » org.objectweb.util.monolog.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.util.monolog.api.BasicLevel

BasicLevel
public class BasicLevel (Code)

This class predefines a set of levels. Indeed during the instrumentation, developers must write calls to log an event with a specific level. One of the goals of Monolog is to be independent of the logging implementation. To respect this goal, predefined variables or constants are needed. This class contains only static but not final variables to represent these predefined levels.

To respect the flyweight pattern chosen in monolog specification, for each predefined level, a Level variable and an integer variable are declared. Their values are not defined, in order to leave it to the implementation to set them.

This class defines five basic levels. But it is possible to a MonoLog user to define additional levels. Monolog allows this type of extension with some constraints or advices:

  • If levels are not ordered, the additional levels must be defined by an implementation of the Level interface.
  • If levels are ordered, all additional level must have an integer value between the FATAL level and the DEBUG level.
  • If levels are ordered, it is possible to define a level with relative integer value with an existent level (MyLevel.FINE = BasicLevel.DEBUG + 2). This possibility imposes that all MonoLog implementations define a set of sparse integer values for the levels.



Field Summary
public static  intDEBUG
     DEBUG messages might include things like minor (recoverable) failures.
public static  intERROR
     The ERROR level designates error events that might still allow the application to continue running.
public static  intFATAL
     In general, FATAL messages should describe events that are of considerable importance and which will prevent continuation of the program execution.
public static  intINFO
     The INFO level designates informational messages that highlight the progress of the application at a coarse-grained level.
public static  intINHERIT
     This special level indicates that the level is inherited from its ancestors.
public static  LevelLEVEL_DEBUG
     DEBUG messages might include things like minor (recoverable) failures.
public static  LevelLEVEL_ERROR
     The ERROR level designates error events that might still allow the application to continue running.
public static  LevelLEVEL_FATAL
     In general, FATAL messages should describe events that are of considerable importance and which will prevent continuation of the program execution.
public static  LevelLEVEL_INFO
     The INFO level designates informational messages that highlight the progress of the application at a coarse-grained level.
public static  LevelLEVEL_INHERIT
     This special level indicates that the level is inherited from its ancestors.
public static  LevelLEVEL_WARN
     In general, WARN messages should describe events that will be of interest to end users or system managers, or which indicate potential problems.
public static  intWARN
     In general, WARN messages should describe events that will be of interest to end users or system managers, or which indicate potential problems.



Field Detail
DEBUG
public static int DEBUG(Code)
DEBUG messages might include things like minor (recoverable) failures. Logging calls for entering, returning, or throwing an exception can be traced at this level.



ERROR
public static int ERROR(Code)
The ERROR level designates error events that might still allow the application to continue running.



FATAL
public static int FATAL(Code)
In general, FATAL messages should describe events that are of considerable importance and which will prevent continuation of the program execution. They should be intelligible to end users and to system administrators



INFO
public static int INFO(Code)
The INFO level designates informational messages that highlight the progress of the application at a coarse-grained level.



INHERIT
public static int INHERIT(Code)
This special level indicates that the level is inherited from its ancestors.



LEVEL_DEBUG
public static Level LEVEL_DEBUG(Code)
DEBUG messages might include things like minor (recoverable) failures. Logging calls for entering, returning, or throwing an exception can be traced at this level.



LEVEL_ERROR
public static Level LEVEL_ERROR(Code)
The ERROR level designates error events that might still allow the application to continue running.



LEVEL_FATAL
public static Level LEVEL_FATAL(Code)
In general, FATAL messages should describe events that are of considerable importance and which will prevent continuation of the program execution. They should be intelligible to end users and to system administrators



LEVEL_INFO
public static Level LEVEL_INFO(Code)
The INFO level designates informational messages that highlight the progress of the application at a coarse-grained level.



LEVEL_INHERIT
public static Level LEVEL_INHERIT(Code)
This special level indicates that the level is inherited from its ancestors.



LEVEL_WARN
public static Level LEVEL_WARN(Code)
In general, WARN messages should describe events that will be of interest to end users or system managers, or which indicate potential problems.



WARN
public static int WARN(Code)
In general, WARN messages should describe events that will be of interest to end users or system managers, or which indicate potential problems.





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.