Class StaticExternalLog

  • All Implemented Interfaces:
    ExternalLog, PluginAware, Configurable

    public class StaticExternalLog
    extends Object
    implements ExternalLog, Configurable, PluginAware
    Default static implementation of ExternalLog For implementing the ExternalLog interface (while being Configurable), extends this class and implements the getAppender() and/or getCategory() methods. Example of XML
     
     <extension id="runtime.core.externalLogger.myTest"
             class="org.ametys.runtime.log.StaticExternalLog"
             point="org.ametys.runtime.log.ExternalLogExtensionPoint">
         <appender-name>my-logger</appender-name>
         <category-name>com.example.mylog</category-name>
         <file-prefix>my-file-name</file-prefix>
         <additive>false</additive>
         <rolling-file>true</rolling-file>
         <log-level>INFO</log-level>
     </extension>