Java Doc for BasicLogFormatter.java in  » HTML-Parser » jericho-html » au » id » jericho » lib » html » 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 » HTML Parser » jericho html » au.id.jericho.lib.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.util.logging.Formatter
      au.id.jericho.lib.html.BasicLogFormatter

BasicLogFormatter
public class BasicLogFormatter extends Formatter (Code)
Provides basic formatting for log messages.

This class extends the java.util.logging.Formatter class, allowing it to be specified as a formatter for the java.util.logging system.

The static BasicLogFormatter.format(String level,String message,String loggerName) method provides a means of using the same formatting outside of the java.util.logging framework. See the documentation of this method for more details.



Field Summary
final static  FormatterINSTANCE
    
public static  booleanOutputLevel
     Determines whether the logging level is included in the output.
public static  booleanOutputName
     Determines whether the logger name is included in the output.


Method Summary
public  Stringformat(LogRecord logRecord)
     Returns a formatted string representing the log entry information contained in the specified java.util.logging.LogRecord.

This method is not called directly, but is used by the java.util.logging framework when this class is specified as a formatter in the logging.properties file.

See the documentation of the parent java.util.logging.Formatter class in the Java SDK for more details.
Parameters:
  logRecord - a java.util.logging.LogRecord object containing all of the log entry information.

public static  Stringformat(String level, String message, String loggerName)
     Returns a formatted string representing the specified log entry information.

This method is used by the WriterLogger class to format its output.

The static properties BasicLogFormatter.OutputLevel and BasicLogFormatter.OutputName affect what information is included in the output.

The Config.NewLine static property determines the character sequence used for line breaks.

A line of output typically looks like this:

INFO: this is the log message
or if the BasicLogFormatter.OutputName property is set to true, the output would look similar to this:
INFO: [net.htmlparser.jericho] this is the log message

Parameters:
  level - a string representing the logging level of the log entry.
Parameters:
  message - the log message.
Parameters:
  loggerName - the name of the logger.

Field Detail
INSTANCE
final static Formatter INSTANCE(Code)



OutputLevel
public static boolean OutputLevel(Code)
Determines whether the logging level is included in the output.

The default value is true.

As this is a static property, changing the value will affect all BasicLogFormatter instances, as well as the behaviour of the static BasicLogFormatter.format(String level,String message,String loggerName) method.




OutputName
public static boolean OutputName(Code)
Determines whether the logger name is included in the output.

The default value is false.

The logger name used for all automatically created Logger instances is "net.htmlparser.jericho".

As this is a static property, changing the value will affect all BasicLogFormatter instances, as well as the behaviour of the static BasicLogFormatter.format(String level,String message,String loggerName) method.






Method Detail
format
public String format(LogRecord logRecord)(Code)
Returns a formatted string representing the log entry information contained in the specified java.util.logging.LogRecord.

This method is not called directly, but is used by the java.util.logging framework when this class is specified as a formatter in the logging.properties file.

See the documentation of the parent java.util.logging.Formatter class in the Java SDK for more details.
Parameters:
  logRecord - a java.util.logging.LogRecord object containing all of the log entry information. a formatted string representing the log entry information contained in the specified java.util.logging.LogRecord.




format
public static String format(String level, String message, String loggerName)(Code)
Returns a formatted string representing the specified log entry information.

This method is used by the WriterLogger class to format its output.

The static properties BasicLogFormatter.OutputLevel and BasicLogFormatter.OutputName affect what information is included in the output.

The Config.NewLine static property determines the character sequence used for line breaks.

A line of output typically looks like this:

INFO: this is the log message
or if the BasicLogFormatter.OutputName property is set to true, the output would look similar to this:
INFO: [net.htmlparser.jericho] this is the log message

Parameters:
  level - a string representing the logging level of the log entry.
Parameters:
  message - the log message.
Parameters:
  loggerName - the name of the logger. a formatted string representing the specified log entry information.



Methods inherited from java.util.logging.Formatter
abstract public String format(LogRecord record)(Code)(Java Doc)
public synchronized String formatMessage(LogRecord record)(Code)(Java Doc)
public String getHead(Handler h)(Code)(Java Doc)
public String getTail(Handler h)(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.