Java Doc for Log.java in  » Web-Server » jo » com » tagtraum » framework » 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 » Web Server » jo » com.tagtraum.framework.log 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.tagtraum.framework.log.Log

Log
public class Log implements C_Log(Code)
Universal Log you can register I_LogEventListener with.
author:
   Hendrik Schreiber
version:
   1.1beta1 $Id: Log.java,v 1.4 2003/09/13 04:59:56 hendriks73 Exp $
See Also:   C_Log
See Also:   LogWriter
See Also:   I_LogEventListener


Field Summary
protected static  HashSetmyControlListener
     Control event Listener set.
protected static  LogmyDefaultLog
     The Default Log.
protected  HashSetmyListener
     Listener set.
protected  intmyLogLevel
     The LogLevel.
protected  StringmyLogName
     The LogName.
protected static  HashMapmyLogs
     Table with logs.
public static  Stringvcid
    

Constructor Summary
public  Log(String aLogName)
     Constructor.

Method Summary
public static synchronized  voidaddI_LogControlEventListener(I_LogControlEventListener aListener)
     Adds a I_LogControlEventListener to this Log.
public synchronized  voidaddI_LogEventListener(I_LogEventListener aListener)
     Adds a I_LogEventListener to this Log.
public synchronized  voidflush()
     Flushes all I_Flushable listeners.
public  intgetLevel()
     Returns the Loglevel.
public static  StringgetLevelString(int level)
     Returns a String representation of the loglevel.
public static  LoggetLog(String aLogName)
     Returns a named Log.
public static  LoggetLog()
     Returns the default Log.
public static  Log[]getLogs()
     Returns the default Log.
public  StringgetName()
     Returns the name of this log.
public static  StringgetStackTrace(Throwable aThrowable)
     Returns the stacktrace for a Throwable.
public static  StringgetStackTrace(I_TagtraumException aException)
     Returns the stacktrace for a I_TagtraumException.
public static  StringgetStackTrace(InvocationTargetException aException)
     Returns the stacktrace for a InvocationTargetException.
public static  StringgetStackTrace(SQLException aException)
     Returns the stacktrace for a SQLException.
public static  StringgetStackTrace(ServletException aException)
     Returns the stacktrace for a ServletException.
final public static  booleanisLog(String aLogName)
     Indicates whether anything is logged at all.
final public static  booleanisLog(int level, String aLogName)
     Indicates whether anything is logged at all.
public  booleanisLog()
     Indicates whether anything is logged at all.
public  booleanisLog(int aLevel)
     Indicates whether would be logged at a specified level.
public  voidlog(Object aComment)
     Writes a message into the default log.
public  voidlog(Throwable aThrowable)
     Writes a throwable into the default log.
public  voidlog(Object aComment, int level)
     Writes a message into the default log with a loglevel.
public  voidlog(Throwable aThrowable, int level)
     Writes a throwable into the default log with a loglevel.
public synchronized  voidlog(LogEvent aLogEvent)
     Dispatches a LogEvent to its I_LogEventListener .
final public static  StringprintStackTrace(Throwable aThrowable)
     Returns the stacktrace for a Throwables.
public static synchronized  voidremoveI_LogControlEventListener(I_LogControlEventListener aListener)
     Removes a I_LogEventListener from this Log.
public synchronized  voidremoveI_LogEventListener(I_LogEventListener aListener)
     Removes a I_LogEventListener from this Log.
public static  voidremoveLog(String aLogName)
     Removes a Log.
public  voidsetLevel(int aLevel)
     Sets the Loglevel.

Field Detail
myControlListener
protected static HashSet myControlListener(Code)
Control event Listener set.



myDefaultLog
protected static Log myDefaultLog(Code)
The Default Log.



myListener
protected HashSet myListener(Code)
Listener set.



myLogLevel
protected int myLogLevel(Code)
The LogLevel.



myLogName
protected String myLogName(Code)
The LogName.



myLogs
protected static HashMap myLogs(Code)
Table with logs.



vcid
public static String vcid(Code)
Source-Version




Constructor Detail
Log
public Log(String aLogName)(Code)
Constructor.




Method Detail
addI_LogControlEventListener
public static synchronized void addI_LogControlEventListener(I_LogControlEventListener aListener)(Code)
Adds a I_LogControlEventListener to this Log.
Parameters:
  aListener - a I_LogControlEventListener



addI_LogEventListener
public synchronized void addI_LogEventListener(I_LogEventListener aListener)(Code)
Adds a I_LogEventListener to this Log.
Parameters:
  aListener - a I_LogEventListener



flush
public synchronized void flush() throws IOException(Code)
Flushes all I_Flushable listeners.



getLevel
public int getLevel()(Code)
Returns the Loglevel. LogLevel



getLevelString
public static String getLevelString(int level)(Code)
Returns a String representation of the loglevel.
Parameters:
  level - level String



getLog
public static Log getLog(String aLogName)(Code)
Returns a named Log. the log



getLog
public static Log getLog()(Code)
Returns the default Log. the log



getLogs
public static Log[] getLogs()(Code)
Returns the default Log. the log



getName
public String getName()(Code)
Returns the name of this log. log name



getStackTrace
public static String getStackTrace(Throwable aThrowable)(Code)
Returns the stacktrace for a Throwable.
Parameters:
  aThrowable - a Throwable Stacktrace



getStackTrace
public static String getStackTrace(I_TagtraumException aException)(Code)
Returns the stacktrace for a I_TagtraumException. This includes other nested Throwables.
Parameters:
  aException - a I_TagtraumException Stacktrace
See Also:   I_TagtraumException



getStackTrace
public static String getStackTrace(InvocationTargetException aException)(Code)
Returns the stacktrace for a InvocationTargetException. This includes other nested Throwables.
Parameters:
  aException - a InvocationTargetException Stacktrace



getStackTrace
public static String getStackTrace(SQLException aException)(Code)
Returns the stacktrace for a SQLException. This includes other nested Throwables.
Parameters:
  aException - a SQLException Stacktrace



getStackTrace
public static String getStackTrace(ServletException aException)(Code)
Returns the stacktrace for a ServletException. This includes other nested Throwables.
Parameters:
  aException - a ServletException Stacktrace



isLog
final public static boolean isLog(String aLogName)(Code)
Indicates whether anything is logged at all.
Parameters:
  aLogName - a LogName true or false



isLog
final public static boolean isLog(int level, String aLogName)(Code)
Indicates whether anything is logged at all.
Parameters:
  aLogName - a LogName true or false



isLog
public boolean isLog()(Code)
Indicates whether anything is logged at all. true or false



isLog
public boolean isLog(int aLevel)(Code)
Indicates whether would be logged at a specified level. true or false



log
public void log(Object aComment)(Code)
Writes a message into the default log.
Parameters:
  aComment - commant that should be logged



log
public void log(Throwable aThrowable)(Code)
Writes a throwable into the default log.
Parameters:
  aThrowable - Throwable, that should be logged



log
public void log(Object aComment, int level)(Code)
Writes a message into the default log with a loglevel.
Parameters:
  aComment - commant that should be logged
Parameters:
  level - level the message should be logged with



log
public void log(Throwable aThrowable, int level)(Code)
Writes a throwable into the default log with a loglevel.
Parameters:
  aThrowable - Throwable, that should be logged
Parameters:
  level - level the message should be logged with



log
public synchronized void log(LogEvent aLogEvent)(Code)
Dispatches a LogEvent to its I_LogEventListener .
Parameters:
  aLogEvent - a LogEvent



printStackTrace
final public static String printStackTrace(Throwable aThrowable)(Code)
Returns the stacktrace for a Throwables. This includes other nested Throwables.
Parameters:
  aThrowable - a Throwable Stacktrace



removeI_LogControlEventListener
public static synchronized void removeI_LogControlEventListener(I_LogControlEventListener aListener)(Code)
Removes a I_LogEventListener from this Log.
Parameters:
  aListener - a I_LogControlEventListener



removeI_LogEventListener
public synchronized void removeI_LogEventListener(I_LogEventListener aListener)(Code)
Removes a I_LogEventListener from this Log.
Parameters:
  aListener - a I_LogEventListener



removeLog
public static void removeLog(String aLogName)(Code)
Removes a Log.
Parameters:
  aLogName - a logname



setLevel
public void setLevel(int aLevel)(Code)
Sets the Loglevel.
Parameters:
  aLevel - LogLevel



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.