public class LoggerModuleComponent extends AbstractModuleComponent
log4j.logger.org.alfresco.modules.MyModule.DumpMessageComponent=INFO
authenticationComponent, moduleService, serviceRegistry| Constructor and Description |
|---|
LoggerModuleComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkProperties()
Checks for the presence of all generally-required properties.
|
protected void |
executeInternal()
The method that performs the actual work.
|
void |
setLogLevel(String logLevel)
Set the level at which the bean must log the message.
|
void |
setMessage(String message)
Set the message that must be logged.
|
equals, execute, getAppliesFromVersionNumber, getAppliesToVersionNumber, getDependsOn, getDescription, getModuleId, getName, getSinceVersionNumber, hashCode, init, isExecuteOnceOnly, setAppliesFromVersion, setAppliesToVersion, setAuthenticationComponent, setBeanName, setDependsOn, setDescription, setExecuteOnceOnly, setModuleId, setModuleService, setName, setServiceRegistry, setSinceVersion, setTenantAdminService, shutdown, toStringpublic void setLogLevel(String logLevel)
logLevel - One of the LogLevel values.
The default is LogLevel#INFO.public void setMessage(String message)
message - a message to log at the log levelprotected void checkProperties()
AbstractModuleComponentcheckProperties in class AbstractModuleComponentprotected void executeInternal()
throws Throwable
AbstractModuleComponentexecuteInternal in class AbstractModuleComponentThrowable - any problems, just throw themCopyright © 2005–2018 Alfresco Software. All rights reserved.