Java Doc for Logger.java in  » Net » edtftpj » com » enterprisedt » util » debug » 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 » Net » edtftpj » com.enterprisedt.util.debug 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.enterprisedt.util.debug.Logger

Logger
public class Logger (Code)
Logger class that mimics log4j Logger class. If log4j integration is desired, the "edtftp.log4j" property should be set to "true" and log4j classes must be in the classpath
author:
   Bruce Blackshaw
version:
   $Revision: 1.22 $


Field Summary
public static  StringcvsId
    


Method Summary
public static synchronized  voidaddAppender(Appender newAppender)
    
public static synchronized  voidclearAppenders()
    
public  voiddebug(String message)
    
public  voiddebug(String message, byte[] data)
    
public  voiddebug(String message, Object arg)
     Logs by substituting in the argument at the location marked in the message argument by {0}. Additional MessageFormat formatting instructions may be included.
public  voiddebug(String message, Object arg0, Object arg1)
     Logs by substituting in the arguments at the locations marked in the message argument by {#} (where # is a number).
public  voiddebug(String message, Object arg0, Object arg1, Object arg2)
     Logs by substituting in the arguments at the locations marked in the message argument by {#} (where # is a number).
public  voiddebug(String message, Object arg0, Object arg1, Object arg2, Object arg3)
     Logs by substituting in the arguments at the locations marked in the message argument by {#} (where # is a number).
public  voiddebug(String message, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4)
     Logs by substituting in the arguments at the locations marked in the message argument by {#} (where # is a number).
public  voiddebug(String message, Throwable t)
    
public  voiderror(String message)
    
public  voiderror(String message, Throwable t)
    
public  voidfatal(String message)
    
public  voidfatal(String message, Throwable t)
    
public static synchronized  LevelgetLevel()
     Returns the logging level for all loggers.
public static  LoggergetLogger(Class clazz)
    
public static synchronized  LoggergetLogger(String clazz)
    
public  voidinfo(String message)
    
public  voidinfo(String message, Throwable t)
    
public  booleanisDebugEnabled()
    
public synchronized  booleanisEnabledFor(Level level)
    
public  booleanisInfoEnabled()
    
public synchronized  voidlog(Level level, String message, Throwable t)
    
public synchronized  voidlogThreadName(boolean logThreadName)
     Set flag for logging thread names as part of the logger names for this instance of the logger.
public static synchronized  voidlogThreadNames(boolean logThreadNames)
     Set global flag for logging thread names as part of the logger names.
public static synchronized  voidremoveAppender(Appender appender)
    
public static synchronized  voidsetLevel(Level level)
    
public static synchronized  voidshutdown()
    
public  voidwarn(String message)
    
public  voidwarn(String message, Throwable t)
    

Field Detail
cvsId
public static String cvsId(Code)
Revision control id





Method Detail
addAppender
public static synchronized void addAppender(Appender newAppender)(Code)
Add an appender to our list
Parameters:
  newAppender -



clearAppenders
public static synchronized void clearAppenders()(Code)
Clear all appenders



debug
public void debug(String message)(Code)
Log a debug level message
Parameters:
  message - message to log



debug
public void debug(String message, byte[] data)(Code)
Log a debug level message
Parameters:
  message - message to log



debug
public void debug(String message, Object arg)(Code)
Logs by substituting in the argument at the location marked in the message argument by {0}. Additional MessageFormat formatting instructions may be included. Note that this method saves processing time by not building the complete string unless it is necessary; this saves the need for encapsulating many complete logging statements in an "if (log.isDebugEnabled())" block.
Parameters:
  message - Message containing "substitution marks"
Parameters:
  arg - argument to be substituted at the marked location.



debug
public void debug(String message, Object arg0, Object arg1)(Code)
Logs by substituting in the arguments at the locations marked in the message argument by {#} (where # is a number). Additional MessageFormat formatting instructions may be included.Note that this method saves processing time by not building the complete string unless it is necessary; this saves the need for encapsulating many complete logging statements in an "if (log.isDebugEnabled())" block.
Parameters:
  message - Message containing "substition marks"
Parameters:
  arg0 - argument to be substituted at the marked location.
Parameters:
  arg1 - argument to be substituted at the marked location.



debug
public void debug(String message, Object arg0, Object arg1, Object arg2)(Code)
Logs by substituting in the arguments at the locations marked in the message argument by {#} (where # is a number). Additional MessageFormat formatting instructions may be included.Note that this method saves processing time by not building the complete string unless it is necessary; this saves the need for encapsulating many complete logging statements in an "if (log.isDebugEnabled())" block.
Parameters:
  message - Message containing "substition marks"
Parameters:
  arg0 - argument to be substituted at the marked location.
Parameters:
  arg1 - argument to be substituted at the marked location.
Parameters:
  arg2 - argument to be substituted at the marked location.



debug
public void debug(String message, Object arg0, Object arg1, Object arg2, Object arg3)(Code)
Logs by substituting in the arguments at the locations marked in the message argument by {#} (where # is a number). Additional MessageFormat formatting instructions may be included.Note that this method saves processing time by not building the complete string unless it is necessary; this saves the need for encapsulating many complete logging statements in an "if (log.isDebugEnabled())" block.
Parameters:
  message - Message containing "substition marks"
Parameters:
  arg0 - argument to be substituted at the marked location.
Parameters:
  arg1 - argument to be substituted at the marked location.
Parameters:
  arg2 - argument to be substituted at the marked location.
Parameters:
  arg3 - argument to be substituted at the marked location.



debug
public void debug(String message, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4)(Code)
Logs by substituting in the arguments at the locations marked in the message argument by {#} (where # is a number). Additional MessageFormat formatting instructions may be included.Note that this method saves processing time by not building the complete string unless it is necessary; this saves the need for encapsulating many complete logging statements in an "if (log.isDebugEnabled())" block.
Parameters:
  message - Message containing "substition marks"
Parameters:
  arg0 - argument to be substituted at the marked location.
Parameters:
  arg1 - argument to be substituted at the marked location.
Parameters:
  arg2 - argument to be substituted at the marked location.
Parameters:
  arg3 - argument to be substituted at the marked location.
Parameters:
  arg4 - argument to be substituted at the marked location.



debug
public void debug(String message, Throwable t)(Code)
Log a debug level message
Parameters:
  message - message to log
Parameters:
  t - throwable object



error
public void error(String message)(Code)
Log an error level message
Parameters:
  message - message to log



error
public void error(String message, Throwable t)(Code)
Log an error level message
Parameters:
  message - message to log
Parameters:
  t - throwable object



fatal
public void fatal(String message)(Code)
Log a fatal level message
Parameters:
  message - message to log



fatal
public void fatal(String message, Throwable t)(Code)
Log a fatal level message
Parameters:
  message - message to log
Parameters:
  t - throwable object



getLevel
public static synchronized Level getLevel()(Code)
Returns the logging level for all loggers. current logging level.



getLogger
public static Logger getLogger(Class clazz)(Code)
Get a logger for the supplied class
Parameters:
  clazz - full class name logger for class



getLogger
public static synchronized Logger getLogger(String clazz)(Code)
Get a logger for the supplied class
Parameters:
  clazz - full class name logger for class



info
public void info(String message)(Code)
Log an info level message
Parameters:
  message - message to log



info
public void info(String message, Throwable t)(Code)
Log an info level message
Parameters:
  message - message to log
Parameters:
  t - throwable object



isDebugEnabled
public boolean isDebugEnabled()(Code)
Is logging enabled for the supplied level? true if enabled



isEnabledFor
public synchronized boolean isEnabledFor(Level level)(Code)
Is logging enabled for the supplied level?
Parameters:
  level - level to test for true if enabled



isInfoEnabled
public boolean isInfoEnabled()(Code)
Is logging enabled for the supplied level? true if enabled



log
public synchronized void log(Level level, String message, Throwable t)(Code)
Log a message
Parameters:
  level - log level
Parameters:
  message - message to log
Parameters:
  t - throwable object



logThreadName
public synchronized void logThreadName(boolean logThreadName)(Code)
Set flag for logging thread names as part of the logger names for this instance of the logger.
Parameters:
  logThreadName - true if logging thread names, false otherwise



logThreadNames
public static synchronized void logThreadNames(boolean logThreadNames)(Code)
Set global flag for logging thread names as part of the logger names.
Parameters:
  logThreadNames - true if logging thread names, false otherwise



removeAppender
public static synchronized void removeAppender(Appender appender)(Code)
Remove an appender to from list
Parameters:
  appender -



setLevel
public static synchronized void setLevel(Level level)(Code)
Set all loggers to this level
Parameters:
  level - new level



shutdown
public static synchronized void shutdown()(Code)
Close all appenders



warn
public void warn(String message)(Code)
Log a warning level message
Parameters:
  message - message to log



warn
public void warn(String message, Throwable t)(Code)
Log a warning level message
Parameters:
  message - message to log
Parameters:
  t - throwable object



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.