Package com.jalios.jcms.logging
Class LoggingSetupManager
- java.lang.Object
-
- com.jalios.jcms.logging.LoggingSetupManager
-
public final class LoggingSetupManager extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
LoggingSetupManager.JaliosClass
A java class and its loggerclass
LoggingSetupManager.JavaPackage
A POJO representing a java package and its logger and sub classesclass
LoggingSetupManager.JavaPackageNameComparator
ComparesLoggingSetupManager.JPlatformPackage
package names alphabeticallystatic class
LoggingSetupManager.JavaPackageNameSelector
class
LoggingSetupManager.JPlatformPackage
A POJO representing a java package and its logger and sub classesstatic class
LoggingSetupManager.LoggingLevelDuration
class
LoggingSetupManager.PluginPackage
POJO representing a plugin and its packagesclass
LoggingSetupManager.PluginPackageLabelComparator
ComparesLoggingSetupManager.PluginPackage
names alphabetically
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canUseLoggerSetup(Member member)
java.util.Set<LoggingSetupManager.JavaPackage>
getAdditionalPackages()
static LoggingSetupManager
getInstance()
java.util.Set<LoggingSetupManager.JPlatformPackage>
getJplatformPackages()
java.util.Set<LoggingSetupManager.PluginPackage>
getPluginPackages()
protected void
initPackages()
boolean
isInitDone()
void
removeLogger(java.lang.String packageName)
void
restoreDefaultConfiguration()
Restores Log4J default configuration (Uses log4j.xml file)void
runPackageInitProcess(Member author, boolean restoreDefaultConfiguration)
java.util.Set<LoggingSetupManager.JavaPackage>
searchInAllPackages(java.lang.String text)
void
setLevel(java.lang.String packageName, org.apache.log4j.Level level)
void
setLevel(java.lang.String packageName, org.apache.log4j.Level level, LoggingSetupManager.LoggingLevelDuration duration)
-
-
-
Field Detail
-
ACL
public static final java.lang.String ACL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static LoggingSetupManager getInstance()
-
initPackages
protected void initPackages()
-
isInitDone
public boolean isInitDone()
-
getJplatformPackages
public java.util.Set<LoggingSetupManager.JPlatformPackage> getJplatformPackages()
- Returns:
- a set of
LoggingSetupManager.JPlatformPackage
- Since:
- jcms-10.0.8
-
getPluginPackages
public java.util.Set<LoggingSetupManager.PluginPackage> getPluginPackages()
- Returns:
- a set of
LoggingSetupManager.PluginPackage
- Since:
- jcms-10.0.8
-
getAdditionalPackages
public java.util.Set<LoggingSetupManager.JavaPackage> getAdditionalPackages()
- Returns:
- a set of
LoggingSetupManager.PluginPackage
- Since:
- jcms-10.0.8
-
searchInAllPackages
public java.util.Set<LoggingSetupManager.JavaPackage> searchInAllPackages(java.lang.String text)
-
canUseLoggerSetup
public boolean canUseLoggerSetup(Member member)
- Parameters:
member
- theMember
- Returns:
- true if given member can use the logger setup
- Since:
- jcms-10.0.8
-
restoreDefaultConfiguration
public void restoreDefaultConfiguration()
Restores Log4J default configuration (Uses log4j.xml file)- Since:
- jcms-10.0.8
-
removeLogger
public void removeLogger(java.lang.String packageName)
-
setLevel
public void setLevel(java.lang.String packageName, org.apache.log4j.Level level)
-
setLevel
public void setLevel(java.lang.String packageName, org.apache.log4j.Level level, LoggingSetupManager.LoggingLevelDuration duration)
-
runPackageInitProcess
public void runPackageInitProcess(Member author, boolean restoreDefaultConfiguration)
-
-