Java Doc for PluginLogManager.java in  » Workflow-Engines » osbl-1_0 » logging » 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 » Workflow Engines » osbl 1_0 » logging 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   logging.PluginLogManager

PluginLogManager
public class PluginLogManager (Code)
PluginLogManager This class encapsulates a Log4J Hierarchy and centralizes all Logger access.
author:
   Manoel Marques



Constructor Summary
public  PluginLogManager(Plugin plugin, Properties properties)
     Creates a new PluginLogManager.

Method Summary
public  Loggerexists(String name)
     Checks if this logger exists.
public  EnumerationgetCurrentLoggers()
     Returns all the loggers in this manager.
public  LoggergetLogger(String name)
     Returns a new logger instance named as the first parameter using the default factory.
public  LoggergetLogger(String name, LoggerFactory factory)
     The same as getLogger(String name) but using a factory instance instead of a default factory.
public  LoggergetRootLogger()
     Returns the root of this hierarchy.
public  LevelgetThreshold()
     Get the repository-wide threshold.
public  booleanhookPlugin(String id, ILog log)
     Hooks a plug-in into this PluginLogManager.
 voidinternalShutdown()
    
public  booleanisDisabled(int level)
     Checks if this PluginLogManager is disabled for this level.
public  voidresetConfiguration()
     Resets configuration values to its defaults.
public  voidsetThreshold(Level level)
     Enable logging for logging requests with level l or higher.
public  voidsetThreshold(String level)
    
public  voidshutdown()
    
public  booleanunHookPlugin(String id)
     Unhooks a plug-in from this PluginLogManager.


Constructor Detail
PluginLogManager
public PluginLogManager(Plugin plugin, Properties properties)(Code)
Creates a new PluginLogManager. Saves the plug-in log and state location. Creates a new Hierarchy and add a new PluginEventListener to it. Configure the hierarchy with the properties passed. Add this object to the lits of acctive plug-in log managers.
Parameters:
  plugin - the plug-in object
Parameters:
  properties - log configuration properties




Method Detail
exists
public Logger exists(String name)(Code)
Checks if this logger exists. Logger



getCurrentLoggers
public Enumeration getCurrentLoggers()(Code)
Returns all the loggers in this manager. Enumeration logger enumeration



getLogger
public Logger getLogger(String name)(Code)
Returns a new logger instance named as the first parameter using the default factory. If a logger of that name already exists, then it will be returned. Otherwise, a new logger will be instantiated and then linked with its existing ancestors as well as children.
Parameters:
  name - logger name Logger



getLogger
public Logger getLogger(String name, LoggerFactory factory)(Code)
The same as getLogger(String name) but using a factory instance instead of a default factory.
Parameters:
  name - logger name
Parameters:
  factory - factory instance Logger



getRootLogger
public Logger getRootLogger()(Code)
Returns the root of this hierarchy. Logger



getThreshold
public Level getThreshold()(Code)
Get the repository-wide threshold. Level



hookPlugin
public boolean hookPlugin(String id, ILog log)(Code)
Hooks a plug-in into this PluginLogManager. When the hooked plug-in uses the Eclipse log API, it will be channeled to this logging framework.
Parameters:
  id - logger name (usually the the plug-in id)
Parameters:
  log - plug-in log



internalShutdown
void internalShutdown()(Code)
Used by LoggingPlugin to shutdown without removing it from the LoggingPlugin list



isDisabled
public boolean isDisabled(int level)(Code)
Checks if this PluginLogManager is disabled for this level.
Parameters:
  level - level value boolean true if it is disabled



resetConfiguration
public void resetConfiguration()(Code)
Resets configuration values to its defaults.



setThreshold
public void setThreshold(Level level)(Code)
Enable logging for logging requests with level l or higher. By default all levels are enabled.
Parameters:
  level - level object



setThreshold
public void setThreshold(String level)(Code)
The string version of setThreshold(Level level)
Parameters:
  level - level string



shutdown
public void shutdown()(Code)
Removes appenders and disposes the logger hierarchy



unHookPlugin
public boolean unHookPlugin(String id)(Code)
Unhooks a plug-in from this PluginLogManager. The Eclipse log API won't be channeled to this logging framework anymore.
Parameters:
  id - logger name (usually the the plug-in id)



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.