Java Doc for Logger.java in  » Portal » liferay-portal-4.4.2 » org » apache » wsrp4j » log » 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 » Portal » liferay portal 4.4.2 » org.apache.wsrp4j.log 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.wsrp4j.log.Logger

All known Subclasses:   org.apache.wsrp4j.log.LoggerImpl,
Logger
public interface Logger (Code)
Logger defines the methods which are used to create logging messages.

Logging levels are:

ERROR
A serious failure in the execution of the application
WARN
An abnormal condition has been detected. The user may have to take action, but the running code is able to handle this condition without ultimately failing.
INFO
A condition that is worth noting but that does not require the user to perform an action.
TRACE_LOW
A low-detail trace message.
TRACE_MEDIUM
A medium-detail trace message.
TRACE_HIGH
A high-detail trace message.

Plain-text messages can be logged through the text(...) methods. These messages are generally hard-coded into the application.
These methods should only be used for logging trace data.

In addition, the following specialized methods are available to log trace information. Each of these trace methods is a convenience to the application programmer:

entry
Logs entry into a method.
exit
Logs exit from a method.
stackTrace
Logs the call stack.

For performance reasons the method isLogging(int logLevel) should be used to check if a given logging level is written at all to the output. The method should be used for the log message level entries, but is absolutely required to be called for trace messages to avoid unnecessary round-trips and object creation.



Field Summary
final public static  intERROR
     Defines an error message.
Use this type to inform the user of a serious failure in the execution of the application.
final public static  intINFO
     Defines an informational message.
Use this type to indicate conditions that are worth noting but that do not require a user to take any precautions or perform an action.
final public static  intTRACE_HIGH
     Defines a high-detail trace message.
final public static  intTRACE_LOW
     Defines a low-detail trace message.
final public static  intTRACE_MEDIUM
     Defines a medium-detail trace message.
final public static  intWARN
     Defines a warning message.
Use this type to inform a user that an abnormal condition has been detected.


Method Summary
public  voidentry(int logLevel, String loggingMethod)
     Logs entry into a method.
public  voidentry(int logLevel, String loggingMethod, Object parm1)
     Logs entry into a method.
public  voidentry(int logLevel, String loggingMethod, Object[] parms)
     Logs entry into a method.
public  voidexit(int logLevel, String loggingMethod)
     Logs exit from a method.
public  voidexit(int logLevel, String loggingMethod, byte retValue)
     Logs exit from a method.
public  voidexit(int logLevel, String loggingMethod, short retValue)
     Logs exit from a method.
public  voidexit(int logLevel, String loggingMethod, int retValue)
     Logs exit from a method.
public  voidexit(int logLevel, String loggingMethod, long retValue)
     Logs exit from a method.
public  voidexit(int logLevel, String loggingMethod, float retValue)
     Logs exit from a method.
public  voidexit(int logLevel, String loggingMethod, double retValue)
     Logs exit from a method.
public  voidexit(int logLevel, String loggingMethod, char retValue)
     Logs exit from a method.
public  voidexit(int logLevel, String loggingMethod, boolean retValue)
     Logs exit from a method.
public  voidexit(int logLevel, String loggingMethod, Object retValue)
     Logs exit from a method.
public  booleanisLogging(int logLevel)
     Determines if this logger is logging data for a given log level or not.
Parameters:
  logLevel - The log level to be checked.
public  voidstackTrace(int logLevel, String loggingMethod, String text)
     Logs the call stack.
public  voidtext(int logLevel, String loggingMethod, String text)
     Logs a text message with no parameters.
public  voidtext(int logLevel, String loggingMethod, String text, Object parm1)
     Logs a text message with one parameter.
public  voidtext(int logLevel, String loggingMethod, String text, Object[] parms)
     Logs a text message with an array of parameters.
public  voidtext(int logLevel, String loggingMethod, Throwable t, String text)
     Logs a text message with no parameters.
public  voidtext(int logLevel, String loggingMethod, Throwable t, String text, Object[] parms)
     Logs a text message with an array of parameters.

Field Detail
ERROR
final public static int ERROR(Code)
Defines an error message.
Use this type to inform the user of a serious failure in the execution of the application.



INFO
final public static int INFO(Code)
Defines an informational message.
Use this type to indicate conditions that are worth noting but that do not require a user to take any precautions or perform an action. Do not use this log level for repeating events.
An informational message is less severe than a warning message.



TRACE_HIGH
final public static int TRACE_HIGH(Code)
Defines a high-detail trace message.



TRACE_LOW
final public static int TRACE_LOW(Code)
Defines a low-detail trace message.



TRACE_MEDIUM
final public static int TRACE_MEDIUM(Code)
Defines a medium-detail trace message.



WARN
final public static int WARN(Code)
Defines a warning message.
Use this type to inform a user that an abnormal condition has been detected. The user may have to take action, but the running code is able to handle this condition without ultimately failing.
A warning message is less severe than an error message.





Method Detail
entry
public void entry(int logLevel, String loggingMethod)(Code)
Logs entry into a method.
Parameters:
  logLevel - The level of the log entry.
Parameters:
  loggingMethod - The name of the logging method.



entry
public void entry(int logLevel, String loggingMethod, Object parm1)(Code)
Logs entry into a method.
Parameters:
  logLevel - The level of the log entry.
Parameters:
  loggingMethod - The name of the logging method.
Parameters:
  parm1 - An element to be displayed as trace data.



entry
public void entry(int logLevel, String loggingMethod, Object[] parms)(Code)
Logs entry into a method.
Parameters:
  logLevel - The level of the log entry.
Parameters:
  loggingMethod - The name of the logging method.
Parameters:
  parms - An array of parameters passed to the method.



exit
public void exit(int logLevel, String loggingMethod)(Code)
Logs exit from a method.
Parameters:
  logLevel - The level of the log entry.
Parameters:
  loggingMethod - The name of the logging method.



exit
public void exit(int logLevel, String loggingMethod, byte retValue)(Code)
Logs exit from a method.
Parameters:
  logLevel - The level of the log entry.
Parameters:
  loggingMethod - The name of the logging method.
Parameters:
  retValue - The returned value.



exit
public void exit(int logLevel, String loggingMethod, short retValue)(Code)
Logs exit from a method.
Parameters:
  logLevel - The level of the log entry.
Parameters:
  loggingMethod - The name of the logging method.
Parameters:
  retValue - The returned value.



exit
public void exit(int logLevel, String loggingMethod, int retValue)(Code)
Logs exit from a method.
Parameters:
  logLevel - The level of the log entry.
Parameters:
  loggingMethod - The name of the logging method.
Parameters:
  retValue - The returned value.



exit
public void exit(int logLevel, String loggingMethod, long retValue)(Code)
Logs exit from a method.
Parameters:
  logLevel - The level of the log entry.
Parameters:
  loggingMethod - The name of the logging method.
Parameters:
  retValue - The returned value.



exit
public void exit(int logLevel, String loggingMethod, float retValue)(Code)
Logs exit from a method.
Parameters:
  logLevel - The level of the log entry.
Parameters:
  loggingMethod - The name of the logging method.
Parameters:
  retValue - The returned value.



exit
public void exit(int logLevel, String loggingMethod, double retValue)(Code)
Logs exit from a method.
Parameters:
  logLevel - The level of the log entry.
Parameters:
  loggingMethod - The name of the logging method.
Parameters:
  retValue - The returned value.



exit
public void exit(int logLevel, String loggingMethod, char retValue)(Code)
Logs exit from a method.
Parameters:
  logLevel - The level of the log entry.
Parameters:
  loggingMethod - The name of the logging method.
Parameters:
  retValue - The returned value.



exit
public void exit(int logLevel, String loggingMethod, boolean retValue)(Code)
Logs exit from a method.
Parameters:
  logLevel - The level of the log entry.
Parameters:
  loggingMethod - The name of the logging method.
Parameters:
  retValue - The returned value.



exit
public void exit(int logLevel, String loggingMethod, Object retValue)(Code)
Logs exit from a method.
Parameters:
  logLevel - The level of the log entry.
Parameters:
  loggingMethod - The name of the logging method.
Parameters:
  retValue - The returned value.



isLogging
public boolean isLogging(int logLevel)(Code)
Determines if this logger is logging data for a given log level or not.
Parameters:
  logLevel - The log level to be checked. true when the object is logging the log level;false otherwise.



stackTrace
public void stackTrace(int logLevel, String loggingMethod, String text)(Code)
Logs the call stack.
Parameters:
  logLevel - The level of the log entry.
Parameters:
  loggingMethod - The name of the logging method.
Parameters:
  text - The message text.



text
public void text(int logLevel, String loggingMethod, String text)(Code)
Logs a text message with no parameters.
Parameters:
  logLevel - The level of the log entry.
Parameters:
  loggingMethod - The name of the logging method.
Parameters:
  text - The message text.



text
public void text(int logLevel, String loggingMethod, String text, Object parm1)(Code)
Logs a text message with one parameter.
Parameters:
  logLevel - The level of the log entry.
Parameters:
  loggingMethod - The name of the logging method.
Parameters:
  text - The message text.
Parameters:
  parm1 - An element to be displayed with the message.



text
public void text(int logLevel, String loggingMethod, String text, Object[] parms)(Code)
Logs a text message with an array of parameters.
Parameters:
  logLevel - The level of the log entry.
Parameters:
  loggingMethod - The name of the logging method.
Parameters:
  text - The message text.
Parameters:
  parms - An array of elements to be displayed with the message.



text
public void text(int logLevel, String loggingMethod, Throwable t, String text)(Code)
Logs a text message with no parameters.
Parameters:
  logLevel - The level of the log entry.
Parameters:
  loggingMethod - The name of the logging method.
Parameters:
  t - The throwable that is cause for this log entry.
Parameters:
  text - The message text.



text
public void text(int logLevel, String loggingMethod, Throwable t, String text, Object[] parms)(Code)
Logs a text message with an array of parameters.
Parameters:
  logLevel - The level of the log entry.
Parameters:
  loggingMethod - The name of the logging method.
Parameters:
  t - The throwable that is cause for this log entry.
Parameters:
  text - The message text.
Parameters:
  parms - An array of elements to be displayed with the message.



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