Java Doc for PortalLogManager.java in  » Portal » Open-Portal » com » sun » portal » log » common » 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 » Portal » Open Portal » com.sun.portal.log.common 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.portal.log.common.PortalLogManager

PortalLogManager
public class PortalLogManager implements FileChangeListener(Code)
This is class is responsible for the configuration. It gets the default values from PSLogConfig.properties. Any independent (web)app, must call new PortalLogManager().init(rootLoggerName); in the init of the (web)app. By default, rootlogger passed to init is configured with the default values from PSLogConfig.properties.


Field Summary
final public static  StringADMIN_LOG_CONFIG_FILENAME
    
final public static  StringDEBUG_COM_SUN_PREFIX
    
final public static  StringDEBUG_ROOT_LOGGER
    
final public static  StringDEBUG_ROOT_LOGGER_SEARCH
    
final public static  StringDEFAULT_LOG_CONFIG_FILE
    
final public static  StringDEFAULT_LOG_FORMATTER
    
final public static  StringDEFAULT_LOG_HANDLER
    
final public static  StringINSTANCE_ID_PATTERN
    
final public static  StringINSTANCE_ID_PROPERTY
    
final public static  StringLOGGER_PATTERN
    
final public static  StringLOG_CONFIG_CHECK_PERIOD_KEY
    
final public static  StringLOG_CONFIG_FILENAME
    
final public static  StringLOG_CONFIG_FILENAME_PROPERTY
    
final public static  StringLOG_HANDLER_APPEND_ATTRIBUTE
    
final public static  StringLOG_HANDLER_ATTRIBUTE
    
final public static  StringLOG_HANDLER_COUNT_ATTRIBUTE
    
final public static  StringLOG_HANDLER_FILTER_ATTRIBUTE
    
final public static  StringLOG_HANDLER_FORMATTER_ATTRIBUTE
    
final public static  StringLOG_HANDLER_LIMIT_ATTRIBUTE
    
final public static  StringLOG_HANDLER_PATTERN_ATTRIBUTE
    
final public static  StringLOG_LEVEL_ATTRIBUTE
    
final public static  StringLOG_MSG_FILE
    
final public static  StringLOG_SEPARATE_FILE_ATTRIBUTE
    
final public static  StringLOG_STACK_TRACE_ATTRIBUTE
    
final public static  StringLOG_TO_SERVER_ATTRIBUTE
    
final public static  StringLOG_USE_PARENT_HANDLER
    
final public static  StringPORTAL_ID_PATTERN
    
final public static  StringPORTAL_ID_PROPERTY
    
final public static  StringSEARCH_LOG_CONFIG_FILENAME
    
final public static  StringSRA_COMPONENT_TYPE_PATTERN
    
final public static  StringSRA_COMPONENT_TYPE_PROPERTY
    
final public static  StringSRA_LOG_CONFIG_FILENAME_PREFIX
    
final public static  StringSTACK_TRACE_UNKNOWN
    
static  PropertiesconfigProperties
    
static  MapconfigPropertiesMap
    
static  MaploggerDetailMap
    
static  MaprootLoggerMap
    


Method Summary
public static  voiddeleteSRALoggersList(String fullPathConfigFile, String sraComponentType)
    
public  voidfileChanged(String fileName)
    
public  LevelgetLevel(String loggerName)
     Returns the log level for the logger from the log config file. If the level is not found, returns the default level.
Parameters:
  loggerName - the name of the logger.
public  StringgetLogFileName(String loggerName, String logConfigFileName)
     Returns the log filename associated with the loggername.
public  StringgetLogFileName(String loggerName)
     Returns the log filename associated with the loggername.
public  voidinit(String rootLoggerName)
     Sets up initial configuration for the logger.
public  voidinit(String rootLoggerName, String fullPathConfigFile)
    
public  voidreloadConfiguration(String fileName)
     Reads the configuration file and loads the content and configure the loggers associated with the filename.
public  StringtoString()
    
 booleanuseServerLogs(String loggerName)
     If the attribute serverlogs is set to true, returns true, else returns false.

Field Detail
ADMIN_LOG_CONFIG_FILENAME
final public static String ADMIN_LOG_CONFIG_FILENAME(Code)



DEBUG_COM_SUN_PREFIX
final public static String DEBUG_COM_SUN_PREFIX(Code)



DEBUG_ROOT_LOGGER
final public static String DEBUG_ROOT_LOGGER(Code)



DEBUG_ROOT_LOGGER_SEARCH
final public static String DEBUG_ROOT_LOGGER_SEARCH(Code)



DEFAULT_LOG_CONFIG_FILE
final public static String DEFAULT_LOG_CONFIG_FILE(Code)



DEFAULT_LOG_FORMATTER
final public static String DEFAULT_LOG_FORMATTER(Code)



DEFAULT_LOG_HANDLER
final public static String DEFAULT_LOG_HANDLER(Code)



INSTANCE_ID_PATTERN
final public static String INSTANCE_ID_PATTERN(Code)



INSTANCE_ID_PROPERTY
final public static String INSTANCE_ID_PROPERTY(Code)



LOGGER_PATTERN
final public static String LOGGER_PATTERN(Code)



LOG_CONFIG_CHECK_PERIOD_KEY
final public static String LOG_CONFIG_CHECK_PERIOD_KEY(Code)



LOG_CONFIG_FILENAME
final public static String LOG_CONFIG_FILENAME(Code)



LOG_CONFIG_FILENAME_PROPERTY
final public static String LOG_CONFIG_FILENAME_PROPERTY(Code)



LOG_HANDLER_APPEND_ATTRIBUTE
final public static String LOG_HANDLER_APPEND_ATTRIBUTE(Code)



LOG_HANDLER_ATTRIBUTE
final public static String LOG_HANDLER_ATTRIBUTE(Code)



LOG_HANDLER_COUNT_ATTRIBUTE
final public static String LOG_HANDLER_COUNT_ATTRIBUTE(Code)



LOG_HANDLER_FILTER_ATTRIBUTE
final public static String LOG_HANDLER_FILTER_ATTRIBUTE(Code)



LOG_HANDLER_FORMATTER_ATTRIBUTE
final public static String LOG_HANDLER_FORMATTER_ATTRIBUTE(Code)



LOG_HANDLER_LIMIT_ATTRIBUTE
final public static String LOG_HANDLER_LIMIT_ATTRIBUTE(Code)



LOG_HANDLER_PATTERN_ATTRIBUTE
final public static String LOG_HANDLER_PATTERN_ATTRIBUTE(Code)



LOG_LEVEL_ATTRIBUTE
final public static String LOG_LEVEL_ATTRIBUTE(Code)



LOG_MSG_FILE
final public static String LOG_MSG_FILE(Code)



LOG_SEPARATE_FILE_ATTRIBUTE
final public static String LOG_SEPARATE_FILE_ATTRIBUTE(Code)



LOG_STACK_TRACE_ATTRIBUTE
final public static String LOG_STACK_TRACE_ATTRIBUTE(Code)



LOG_TO_SERVER_ATTRIBUTE
final public static String LOG_TO_SERVER_ATTRIBUTE(Code)



LOG_USE_PARENT_HANDLER
final public static String LOG_USE_PARENT_HANDLER(Code)



PORTAL_ID_PATTERN
final public static String PORTAL_ID_PATTERN(Code)



PORTAL_ID_PROPERTY
final public static String PORTAL_ID_PROPERTY(Code)



SEARCH_LOG_CONFIG_FILENAME
final public static String SEARCH_LOG_CONFIG_FILENAME(Code)



SRA_COMPONENT_TYPE_PATTERN
final public static String SRA_COMPONENT_TYPE_PATTERN(Code)



SRA_COMPONENT_TYPE_PROPERTY
final public static String SRA_COMPONENT_TYPE_PROPERTY(Code)



SRA_LOG_CONFIG_FILENAME_PREFIX
final public static String SRA_LOG_CONFIG_FILENAME_PREFIX(Code)



STACK_TRACE_UNKNOWN
final public static String STACK_TRACE_UNKNOWN(Code)



configProperties
static Properties configProperties(Code)



configPropertiesMap
static Map configPropertiesMap(Code)



loggerDetailMap
static Map loggerDetailMap(Code)



rootLoggerMap
static Map rootLoggerMap(Code)





Method Detail
deleteSRALoggersList
public static void deleteSRALoggersList(String fullPathConfigFile, String sraComponentType)(Code)



fileChanged
public void fileChanged(String fileName)(Code)



getLevel
public Level getLevel(String loggerName)(Code)
Returns the log level for the logger from the log config file. If the level is not found, returns the default level.
Parameters:
  loggerName - the name of the logger. the log level for the logger from the log config file.



getLogFileName
public String getLogFileName(String loggerName, String logConfigFileName) throws FileNotFoundException, IOException(Code)
Returns the log filename associated with the loggername.
Parameters:
  loggerName - the name of the logger.
Parameters:
  logConfigFileName - the configuration file for the logger the name of the logfile associated with the logger.
throws:
  FileNotFoundException - if the log configuration file is not found.
throws:
  IOException - if an I/O error occurs.



getLogFileName
public String getLogFileName(String loggerName) throws FileNotFoundException, IOException(Code)
Returns the log filename associated with the loggername. Here the log configuration filename is obtained from the system property.
Parameters:
  loggerName - the name of the logger.
throws:
  FileNotFoundException - if the log configuration file is not found.
throws:
  IOException - if an I/O error occurs.



init
public void init(String rootLoggerName)(Code)
Sets up initial configuration for the logger.
Parameters:
  rootLoggerName -



init
public void init(String rootLoggerName, String fullPathConfigFile)(Code)
Sets up the initial configuration for the logger based on the fullPathConfigFile
Parameters:
  rootLoggerName - the name of the rootLogger
Parameters:
  fullPathConfigFile - the config filename along with the full path



reloadConfiguration
public void reloadConfiguration(String fileName)(Code)
Reads the configuration file and loads the content and configure the loggers associated with the filename.
Parameters:
  fileName -



toString
public String toString()(Code)



useServerLogs
boolean useServerLogs(String loggerName)(Code)
If the attribute serverlogs is set to true, returns true, else returns false. If true, the messages are logged to the webcontainer logs. true if messages are logged to the webcontainer logs.



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.