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


java.lang.Object
   com.sun.portal.fabric.util.LogConfigUtil

LogConfigUtil
public class LogConfigUtil (Code)
This class provides methods to copy Log Config files from the templates directory to the appropriate directory and do the tag swapping in the config files.


Field Summary
final public static  Stringfs
    


Method Summary
public static  voidcreatePortalLogConfigFile(String psBaseDir, String psDataDir, String portalID)
     Creates the log config file for portal Copies the log config file from the templates directory(psBaseDir/template) to the config directory of Portal ID(psDataDir/portals/portalID/config).
public static  voidcreateSearchLogConfigFile(String psBaseDir, String searchDataDir, String searchServerID)
     Creates the log config file for search.
public static  FilegetAdminLogConfigFile(String psBaseDir, String logDestDir, String loggerName, boolean excludeAudit)
     Returns the log config file.
public static  StringgetDefaultLogLevel()
     Returns the default loglevel present in the log config file.
public static  FilegetLogConfigFileTemplate(String psBaseDir)
     Returns the log config file template Copies the log config file from the templates directory(psBaseDir/template) to a temp file and returns it.

Field Detail
fs
final public static String fs(Code)
File separator





Method Detail
createPortalLogConfigFile
public static void createPortalLogConfigFile(String psBaseDir, String psDataDir, String portalID)(Code)
Creates the log config file for portal Copies the log config file from the templates directory(psBaseDir/template) to the config directory of Portal ID(psDataDir/portals/portalID/config). The destination file is PSLogConfig.properties It also replaces the tag %LOG_DIR% with the the log directory(psDataDir/portals/portalID/logs).
Parameters:
  psBaseDir - Portal Server product installation directory path
Parameters:
  psDataDir - Portal Server software data directory path
Parameters:
  portalID - the Portal ID



createSearchLogConfigFile
public static void createSearchLogConfigFile(String psBaseDir, String searchDataDir, String searchServerID)(Code)
Creates the log config file for search. Copies the log config file from the templates directory(psBaseDir/template) to the config directory of Portal ID(searchDataDir/searchservers/searchServerID/config). The destination file is SearchLogConfig.properties It also replaces the tag %LOG_DIR% with the the log directory(searchDataDir/searchservers/searchServerID/logs).
Parameters:
  psBaseDir - Portal Server product installation directory path
Parameters:
  searchDataDir - Search Server software data directory path
Parameters:
  searchServerID - the Search server ID



getAdminLogConfigFile
public static File getAdminLogConfigFile(String psBaseDir, String logDestDir, String loggerName, boolean excludeAudit) throws IOException(Code)
Returns the log config file. Copies the log config file from the templates directory(psBaseDir/template) to a temp file and returns it. The token %ROOT_LOGGER% will be replaced by loggerName The token %LOG_DIR% will be replaced by logDestDir
Parameters:
  psBaseDir - Portal Server product installation directory path
Parameters:
  logDestDir - destination directory path for the logs
Parameters:
  loggerName - the logger name that will used for token replacement



getDefaultLogLevel
public static String getDefaultLogLevel()(Code)
Returns the default loglevel present in the log config file.



getLogConfigFileTemplate
public static File getLogConfigFileTemplate(String psBaseDir) throws IOException(Code)
Returns the log config file template Copies the log config file from the templates directory(psBaseDir/template) to a temp file and returns it. The token %ROOT_LOGGER% will be replaced by debug.com.sun.portal
Parameters:
  psBaseDir - Portal Server product installation directory path



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.