Java Doc for Logger.java in  » Database-ORM » Velosurf » velosurf » 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 » Database ORM » Velosurf » velosurf.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   velosurf.util.Logger

Logger
public class Logger (Code)
This class is the logger used by velosurf.
author:
   Claude Brisson


Field Summary
final public static  intDEBUG_ID
     debug messages loglevel.
final public static  intERROR_ID
     error messages loglevel.
final public static  intFATAL_ID
     fatal messages loglevel.
final public static  intINFO_ID
     info messages loglevel.
final public static  intTRACE_ID
     trace messages loglevel.
final public static  intWARN_ID
     warn messages loglevel.
static  StringWriterasyncLog
     asynchronous log used at start.
static  SimpleDateFormatformat
     date format for timestamps.
static  intlines
    
static  PrintWriterlog
     log output printwriter.
static  PrintStreamoldStderr
     stderr old value.
static  PrintStreamoldStdout
     stdout old value.


Method Summary
public static  voiddebug(String s)
     logs a debug string.
public static  voiddumpStack()
     dumps the current stack.
public static  voidenableNotifications(boolean enable)
    
public static  voiderror(String s)
     logs an error string.
public static  voidfatal(String s)
     logs a fatal error string.
public static  intgetLogLevel()
     Gets the current log level.
public static  intgetNotificationLevel(int level)
    
public static  PrintWritergetWriter()
     get the output writer.
public static  voidinfo(String s)
     logs an info string.
public static  booleanisInitialized()
     queries the initialized state.
public static  voidlog(String s, Throwable e)
     logs an exception with a string.
public static  voidlog(Throwable e)
     log an exception.
public static  voidlog(int level, String s)
     log a string using a verbose level.
public static  voidlog2File(String file)
     log to file.
public static  voidlog2Stderr()
     log to stderr.
public static  voidlog2Stdout()
     log to stdout.
public static  voidsetDisplayTimestamps(boolean timestamps)
     whether to display timestamps.
public static  voidsetLogLevel(int logLevel)
     Sets the log level.
public static  voidsetNotificationLevel(int level)
    
public static  voidsetNotificationParams(String host, String sender, String recipient)
    
public static  voidsetWriter(Object out)
     set the output writer.
public static  voidstartCaptureStderr()
     redirects stderr towards the output writer.
public static  voidstartCaptureStdout()
     redirects stdout towards output writer.
public static  voidstopCaptureStderr()
     stops redirecting stderr.
public static  voidstopCaptureStdout()
     stop redirecting stdout.
public static  voidtrace(String s)
     logs a tracing string.
public static  voidwarn(String s)
     logs a warning string.

Field Detail
DEBUG_ID
final public static int DEBUG_ID(Code)
debug messages loglevel.



ERROR_ID
final public static int ERROR_ID(Code)
error messages loglevel.



FATAL_ID
final public static int FATAL_ID(Code)
fatal messages loglevel.



INFO_ID
final public static int INFO_ID(Code)
info messages loglevel.



TRACE_ID
final public static int TRACE_ID(Code)
trace messages loglevel.



WARN_ID
final public static int WARN_ID(Code)
warn messages loglevel.



asyncLog
static StringWriter asyncLog(Code)
asynchronous log used at start.



format
static SimpleDateFormat format(Code)
date format for timestamps.



lines
static int lines(Code)



log
static PrintWriter log(Code)
log output printwriter.



oldStderr
static PrintStream oldStderr(Code)
stderr old value.



oldStdout
static PrintStream oldStdout(Code)
stdout old value.





Method Detail
debug
public static void debug(String s)(Code)
logs a debug string.
Parameters:
  s - debug string



dumpStack
public static void dumpStack()(Code)
dumps the current stack.



enableNotifications
public static void enableNotifications(boolean enable)(Code)



error
public static void error(String s)(Code)
logs an error string.
Parameters:
  s - error string



fatal
public static void fatal(String s)(Code)
logs a fatal error string.
Parameters:
  s - fatal error string



getLogLevel
public static int getLogLevel()(Code)
Gets the current log level. the current log level



getNotificationLevel
public static int getNotificationLevel(int level)(Code)



getWriter
public static PrintWriter getWriter()(Code)
get the output writer. writer



info
public static void info(String s)(Code)
logs an info string.
Parameters:
  s - info string



isInitialized
public static boolean isInitialized()(Code)
queries the initialized state.



log
public static void log(String s, Throwable e)(Code)
logs an exception with a string.
Parameters:
  s - string
Parameters:
  e - exception



log
public static void log(Throwable e)(Code)
log an exception.
Parameters:
  e - exception



log
public static void log(int level, String s)(Code)
log a string using a verbose level.
Parameters:
  level - verbose level
Parameters:
  s - string to log



log2File
public static void log2File(String file) throws FileNotFoundException, IOException(Code)
log to file.



log2Stderr
public static void log2Stderr()(Code)
log to stderr.



log2Stdout
public static void log2Stdout()(Code)
log to stdout.



setDisplayTimestamps
public static void setDisplayTimestamps(boolean timestamps)(Code)
whether to display timestamps.
Parameters:
  timestamps -



setLogLevel
public static void setLogLevel(int logLevel)(Code)
Sets the log level.
Parameters:
  logLevel - log level



setNotificationLevel
public static void setNotificationLevel(int level)(Code)



setNotificationParams
public static void setNotificationParams(String host, String sender, String recipient)(Code)



setWriter
public static void setWriter(Object out)(Code)
set the output writer.
Parameters:
  out - PrintWriter or Writer or OutputStream



startCaptureStderr
public static void startCaptureStderr()(Code)
redirects stderr towards the output writer.



startCaptureStdout
public static void startCaptureStdout()(Code)
redirects stdout towards output writer.



stopCaptureStderr
public static void stopCaptureStderr()(Code)
stops redirecting stderr.



stopCaptureStdout
public static void stopCaptureStdout()(Code)
stop redirecting stdout.



trace
public static void trace(String s)(Code)
logs a tracing string.
Parameters:
  s - tracing string



warn
public static void warn(String s)(Code)
logs a warning string.
Parameters:
  s - warning string



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.