Java Doc for Logger.java in  » Web-Framework » RSF » uk » org » ponder » util » 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 » Web Framework » RSF » uk.org.ponder.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   uk.org.ponder.util.Logger

Logger
public class Logger (Code)
A useful logging class that
  • Compactly annotates the output from different threads
  • Supports multiple levels of logging message priority, held in a stack
  • Renders unprintable Unicode characters in a detectable form
  • Can redirect output to console or to file
Coming soon:
    • Some form of timestamping.


  • Field Summary
    final public static  intDEBUG_ASSERTION
        
    final public static  intDEBUG_ENTIRELY_CRITICAL
        
    final public static  intDEBUG_EXTRA_INFO
        
    final public static  intDEBUG_INFORMATIONAL
        
    public static  intDEBUG_LEVEL
        
    final public static  intDEBUG_PAINTING
        
    final public static  intDEBUG_QUITE_INTERESTING
        
    final public static  intDEBUG_SEVERE
        
    final public static  intDEBUG_SUBATOMIC
        
    final public static  intDEBUG_WARNING
        
    final public static  booleandebugmode
        
    public static  org.apache.log4j.Loggerlog
        
    public static  PrintStreamlogger
        


    Method Summary
    public static  booleanpassDebugLevel(int debuglevel)
         Allows clients to detect whether a given debugging priority level passes the current threshold.
    Parameters:
      debuglevel - The debug level to be checked.
    public static  voidpopDebugLevel()
         Pops the last debugging level that was pushed onto the stack, and sets the current debugging level to the new stack top level.
    public static  voidprint(String toprint, int debuglevel)
         Prints a message with a particular priority level, without a newline.
    Parameters:
      toprint - The message to be printed.
    Parameters:
      debuglevel - The priority level of the message.
    public static  voidprint(Object toprint)
         Prints the supplied object to the debug stream.
    public static  voidprint(String toprint)
         Prints the supplied message to the debug stream.
    public static  voidprintStackTrace(Throwable t)
         Prints a stack trace for the supplied exception to the debug stream, with the default priority level of DEBUG_SEVERE.
    public static  voidprintStackTrace(Throwable t, int debuglevel)
         Prints a stack trace for the supplied exception to the debug stream, with the specified priority level.
    public static  voidprintln(String toprint, int debuglevel)
         Prints a message with a particular priority level, followed by a newline.
    Parameters:
      toprint - The message to be printed.
    Parameters:
      debuglevel - The priority level of the message.
    public static  voidprintln(Object toprint)
         Prints the supplied object to the debug stream followed by a newline.
    public static  voidprintln(String toprint)
         Prints the supplied message to the debug stream, followed by a newline.
    public static  voidpushDebugLevel(int debuglevel)
         Pushes the specified debugging level onto the stack, and sets the current debugging level to this level.
    public static  voidsetConsoleOutput()
         Sets the destination for debugging messages to the console.
    public static  voidsetDebugLevel(int debuglevel)
         Sets the current debugging level to the specified level.
    public static  voidsetDestinationFile(String filename)
         Sets the destination for debugging messages to a file with the specified name.

    Field Detail
    DEBUG_ASSERTION
    final public static int DEBUG_ASSERTION(Code)



    DEBUG_ENTIRELY_CRITICAL
    final public static int DEBUG_ENTIRELY_CRITICAL(Code)



    DEBUG_EXTRA_INFO
    final public static int DEBUG_EXTRA_INFO(Code)



    DEBUG_INFORMATIONAL
    final public static int DEBUG_INFORMATIONAL(Code)



    DEBUG_LEVEL
    public static int DEBUG_LEVEL(Code)



    DEBUG_PAINTING
    final public static int DEBUG_PAINTING(Code)



    DEBUG_QUITE_INTERESTING
    final public static int DEBUG_QUITE_INTERESTING(Code)



    DEBUG_SEVERE
    final public static int DEBUG_SEVERE(Code)



    DEBUG_SUBATOMIC
    final public static int DEBUG_SUBATOMIC(Code)



    DEBUG_WARNING
    final public static int DEBUG_WARNING(Code)



    debugmode
    final public static boolean debugmode(Code)



    log
    public static org.apache.log4j.Logger log(Code)



    logger
    public static PrintStream logger(Code)





    Method Detail
    passDebugLevel
    public static boolean passDebugLevel(int debuglevel)(Code)
    Allows clients to detect whether a given debugging priority level passes the current threshold.
    Parameters:
      debuglevel - The debug level to be checked. true if a message of the specified priority level would beprinted.



    popDebugLevel
    public static void popDebugLevel()(Code)
    Pops the last debugging level that was pushed onto the stack, and sets the current debugging level to the new stack top level.



    print
    public static void print(String toprint, int debuglevel)(Code)
    Prints a message with a particular priority level, without a newline.
    Parameters:
      toprint - The message to be printed.
    Parameters:
      debuglevel - The priority level of the message. If the current prioritylevel is higher than the supplied level, printing of the message will be suppressed.



    print
    public static void print(Object toprint)(Code)
    Prints the supplied object to the debug stream.
    Parameters:
      toprint - The object to be printed.



    print
    public static void print(String toprint)(Code)
    Prints the supplied message to the debug stream.
    Parameters:
      The - message to be printed.



    printStackTrace
    public static void printStackTrace(Throwable t)(Code)
    Prints a stack trace for the supplied exception to the debug stream, with the default priority level of DEBUG_SEVERE.
    Parameters:
      t - The throwable for which a stack trace is required.



    printStackTrace
    public static void printStackTrace(Throwable t, int debuglevel)(Code)
    Prints a stack trace for the supplied exception to the debug stream, with the specified priority level.
    Parameters:
      t - The throwable for which a stack trace is required.
    Parameters:
      debuglevel - The priority level for the stack trace.



    println
    public static void println(String toprint, int debuglevel)(Code)
    Prints a message with a particular priority level, followed by a newline.
    Parameters:
      toprint - The message to be printed.
    Parameters:
      debuglevel - The priority level of the message. If the current priority levelis higher than the supplied level, printing of the message will be suppressed.If the current debug level is DEBUG_ASSERTION, a message of withpriority DEBUG_ASSERTION will trigger an AssertionException.



    println
    public static void println(Object toprint)(Code)
    Prints the supplied object to the debug stream followed by a newline.
    Parameters:
      toprint - The object to be printed.



    println
    public static void println(String toprint)(Code)
    Prints the supplied message to the debug stream, followed by a newline.
    Parameters:
      The - message to be printed.



    pushDebugLevel
    public static void pushDebugLevel(int debuglevel)(Code)
    Pushes the specified debugging level onto the stack, and sets the current debugging level to this level.
    Parameters:
      debuglevel - The new debugging level.



    setConsoleOutput
    public static void setConsoleOutput()(Code)
    Sets the destination for debugging messages to the console.



    setDebugLevel
    public static void setDebugLevel(int debuglevel)(Code)
    Sets the current debugging level to the specified level. Messages with priorities lower than this level (i.e. with higher integer values) will be suppressed.
    Parameters:
      debuglevel - The new debugging level to operate at.



    setDestinationFile
    public static void setDestinationFile(String filename)(Code)
    Sets the destination for debugging messages to a file with the specified name. If this file cannot be opened, output will revert to the console. If null is supplied for the filename, the filename defaults to javalog.txt
    Parameters:
      filename - The filename to receive logging output.



    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.