Java Doc for Logger.java in  » Template-Engine » freemarker-2.3.10 » freemarker » 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 » Template Engine » freemarker 2.3.10 » freemarker.log 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   freemarker.log.Logger

Logger
abstract public class Logger (Code)
The FreeMarker logging facility. This is a polymorphic implementation that will use whatever logging package it can find on the system: Apache Jakarta Log4J, Apache Jakarta Avalon LogKit, JDK1.4 logging (in this order). If it fails to find any of the above, logging will be suppressed and a short notice output to System.err. You can use the Logger.selectLoggerLibrary(int) static method to force use of a specific logger package, or to turn off logging.
version:
   $Id: Logger.java,v 1.24 2003/10/03 15:35:10 stephanmueller Exp $
author:
   Attila Szegedi


Field Summary
final public static  intLIBRARY_AUTO
     Constant used with Logger.selectLoggerLibrary(int) that indicates the engine should automatically lookup and use any available logger library.
final public static  intLIBRARY_AVALON
     Constant used with Logger.selectLoggerLibrary(int) that indicates the engine should use the Apache Jakarta Avalon LogKit logger package.
final public static  intLIBRARY_JAVA
     Constant used with Logger.selectLoggerLibrary(int) that indicates the engine should use the java.util.logging logger package.
final public static  intLIBRARY_LOG4J
     Constant used with Logger.selectLoggerLibrary(int) that indicates the engine should use the Apache Jakarta Log4J logger package.
final public static  intLIBRARY_NONE
     Constant used with Logger.selectLoggerLibrary(int) that indicates the engine should use no logger package (i.e.


Method Summary
abstract public  voiddebug(String message)
     Logs a debugging message.
abstract public  voiddebug(String message, Throwable t)
     Logs a debugging message with accompanying throwable.
abstract public  voiderror(String message)
     Logs an error message.
abstract public  voiderror(String message, Throwable t)
     Logs an error message with accompanying throwable.
public static  LoggergetLogger(String category)
     Returns a logger for the specified category.
Parameters:
  category - a dot separated hierarchical category name.
abstract public  voidinfo(String message)
     Logs an informational message.
abstract public  voidinfo(String message, Throwable t)
     Logs an informational message with accompanying throwable.
abstract public  booleanisDebugEnabled()
     Returns true if this logger will log debug messages.
abstract public  booleanisErrorEnabled()
     Returns true if this logger will log error messages.
abstract public  booleanisFatalEnabled()
     Returns true if this logger will log fatal error messages.
abstract public  booleanisInfoEnabled()
     Returns true if this logger will log informational messages.
abstract public  booleanisWarnEnabled()
     Returns true if this logger will log warning messages.
public static  voidselectLoggerLibrary(int library)
     Selects the logger library to use. If you want to change the default setting, do it early in application initialization phase, before calling any other FreeMarker API since once various parts of the FreeMarker library bind to the logging subsystem, the change in this value will have no effect on them.
Parameters:
  library - one of LIBRARY_XXX constants.
public static  voidsetCategoryPrefix(String prefix)
     Sets a category prefix.
abstract public  voidwarn(String message)
     Logs a warning message.
abstract public  voidwarn(String message, Throwable t)
     Logs a warning message with accompanying throwable.

Field Detail
LIBRARY_AUTO
final public static int LIBRARY_AUTO(Code)
Constant used with Logger.selectLoggerLibrary(int) that indicates the engine should automatically lookup and use any available logger library.



LIBRARY_AVALON
final public static int LIBRARY_AVALON(Code)
Constant used with Logger.selectLoggerLibrary(int) that indicates the engine should use the Apache Jakarta Avalon LogKit logger package.



LIBRARY_JAVA
final public static int LIBRARY_JAVA(Code)
Constant used with Logger.selectLoggerLibrary(int) that indicates the engine should use the java.util.logging logger package.



LIBRARY_LOG4J
final public static int LIBRARY_LOG4J(Code)
Constant used with Logger.selectLoggerLibrary(int) that indicates the engine should use the Apache Jakarta Log4J logger package.



LIBRARY_NONE
final public static int LIBRARY_NONE(Code)
Constant used with Logger.selectLoggerLibrary(int) that indicates the engine should use no logger package (i.e. turn off logging).





Method Detail
debug
abstract public void debug(String message)(Code)
Logs a debugging message.



debug
abstract public void debug(String message, Throwable t)(Code)
Logs a debugging message with accompanying throwable.



error
abstract public void error(String message)(Code)
Logs an error message.



error
abstract public void error(String message, Throwable t)(Code)
Logs an error message with accompanying throwable.



getLogger
public static Logger getLogger(String category)(Code)
Returns a logger for the specified category.
Parameters:
  category - a dot separated hierarchical category name. If a categoryprefix is in effect, it is prepended to the category name.



info
abstract public void info(String message)(Code)
Logs an informational message.



info
abstract public void info(String message, Throwable t)(Code)
Logs an informational message with accompanying throwable.



isDebugEnabled
abstract public boolean isDebugEnabled()(Code)
Returns true if this logger will log debug messages.



isErrorEnabled
abstract public boolean isErrorEnabled()(Code)
Returns true if this logger will log error messages.



isFatalEnabled
abstract public boolean isFatalEnabled()(Code)
Returns true if this logger will log fatal error messages.



isInfoEnabled
abstract public boolean isInfoEnabled()(Code)
Returns true if this logger will log informational messages.



isWarnEnabled
abstract public boolean isWarnEnabled()(Code)
Returns true if this logger will log warning messages.



selectLoggerLibrary
public static void selectLoggerLibrary(int library) throws ClassNotFoundException(Code)
Selects the logger library to use. If you want to change the default setting, do it early in application initialization phase, before calling any other FreeMarker API since once various parts of the FreeMarker library bind to the logging subsystem, the change in this value will have no effect on them.
Parameters:
  library - one of LIBRARY_XXX constants. By default,Logger.LIBRARY_AUTO is used.
throws:
  ClassNotFoundException - if an explicit logging library is asked for(that is, neither NONE, nor AUTO), and it is not found in the classpath.



setCategoryPrefix
public static void setCategoryPrefix(String prefix)(Code)
Sets a category prefix. This prefix is prepended to any logger category name. This makes it possible to have different FreeMarker logger categories on a per-application basis (better said, per-classloader basis). By default the category prefix is the empty string. If you set a non-empty category prefix, be sure to include the trailing separator dot (i.e. "MyApp.") If you want to change the default setting, do it early in application initialization phase, before calling any other FreeMarker API since once various parts of the FreeMarker library bind to the logging subsystem, the change in this value will have no effect on them.



warn
abstract public void warn(String message)(Code)
Logs a warning message.



warn
abstract public void warn(String message, Throwable t)(Code)
Logs a warning message with accompanying throwable.



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.