Java Doc for Log4jImpl.java in  » Database-ORM » MMBase » org » mmbase » util » logging » log4j » 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 » MMBase » org.mmbase.util.logging.log4j 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.mmbase.util.logging.log4j.Log4jImpl

Log4jImpl
final public class Log4jImpl extends org.apache.log4j.Logger implements Logger(Code)
This Logger implementation extends the Logger class from the log4j project (version >= 1.2). It has the following extra functionality. First of all it uses the LoggerLevel class for Level, and so has two extra priorities, namely 'trace' and 'service'. Further it instantiates one object of itself, named `STDERR' to which stderr will be redirected. Normally this will happen with priority `info' but Exceptions will get priorty `fatal'. It also has a static member method `configure', which calls the configure of DOMConfigurator, in this way log4j classes are used only here, and the rest of MMBase can use only `Logger'.
author:
   Michiel Meeuwissen



Constructor Summary
protected  Log4jImpl(String name)
     Constructor, like the constructor of org.apache.log4j.Logger .

Method Summary
public static  voidconfigure(String s)
     Calls the configure method of DOMConfigurator, and redirect standard error to STDERR category.
protected static  voiddoConfigure(InputStream i)
    
protected static  voiddoConfigure(File f)
    
public static  org.apache.log4j.CategorygetInstance(String name)
     This method overrides org.apache.log4j.Logger.getInstance by supplying its own factory type as a parameter.
public static  org.apache.log4j.LoggergetLogger(String name)
    
public static  Log4jImplgetLoggerInstance(String name)
     As getLogger, but cast to MMBase Logger already.
final public  booleanisServiceEnabled()
    
final public  booleanisTraceEnabled()
    
final public  voidservice(Object message)
     A new logging method that takes the SERVICE priority.
final public  voidservice(Object message, Throwable t)
    
public  voidsetLevel(Level p)
    
public static  voidshutdown()
    
final public  voidtrace(Object message)
     A new logging method that takes the TRACE priority.
final public  voidtrace(Object message, Throwable t)
    


Constructor Detail
Log4jImpl
protected Log4jImpl(String name)(Code)
Constructor, like the constructor of org.apache.log4j.Logger .




Method Detail
configure
public static void configure(String s)(Code)
Calls the configure method of DOMConfigurator, and redirect standard error to STDERR category. It also starts up the FileWatcher. The 'configureAndWatch' method of DOMConfigurator used to be used, but it is not feasible anymore because 1. cannot give the repository then. 2. Cannot log the happening on normal way.
Parameters:
  s - A string to the xml-configuration file. Can beabsolute, or relative to the Logging configuration file.



doConfigure
protected static void doConfigure(InputStream i)(Code)



doConfigure
protected static void doConfigure(File f)(Code)
Performs the actual parsing of the log4j configuration file and handles the errors



getInstance
public static org.apache.log4j.Category getInstance(String name)(Code)
This method overrides org.apache.log4j.Logger.getInstance by supplying its own factory type as a parameter.



getLogger
public static org.apache.log4j.Logger getLogger(String name)(Code)



getLoggerInstance
public static Log4jImpl getLoggerInstance(String name)(Code)
As getLogger, but cast to MMBase Logger already. And the possible ClassCastException is caught.



isServiceEnabled
final public boolean isServiceEnabled()(Code)



isTraceEnabled
final public boolean isTraceEnabled()(Code)



service
final public void service(Object message)(Code)
A new logging method that takes the SERVICE priority.



service
final public void service(Object message, Throwable t)(Code)



setLevel
public void setLevel(Level p)(Code)



shutdown
public static void shutdown()(Code)



trace
final public void trace(Object message)(Code)
A new logging method that takes the TRACE priority.



trace
final public void trace(Object message, Throwable t)(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.