PHP Classes

File: config.xml

Recommend this page to a friend!
  Classes of Victor Henrique Pereira  >  DB Manager Logger  >  config.xml  >  Download  
File: config.xml
Role: Auxiliary data
Content type: text/plain
Description: Config for the logger
Class: DB Manager Logger
Execute and log MySQL queries using PDO
Author: By
Last change: update namespaces
Date: 7 years ago
Size: 1,184 bytes
 

Contents

Class file image Download
<configuration xmlns="http://logging.apache.org/log4php/">
    
    <renderer renderedClass="SRC\Models\Accounts" renderingClass="SRC\Loggers\AccountsLogger" />
 
    <appender name="ConsoleAppender" class="LoggerAppenderConsole" />
    
    <appender name="FileAppender" class="LoggerAppenderDailyFile">
        <layout class="LoggerLayoutPattern">
            <param name="conversionPattern" value="%date{Y-m-d H:i:s,u} [%logger]->%-5level %message%newline" />
        </layout>
        <layout class="LoggerLayoutSimple" />
        <param name="file" value="logs/file-%s.log" />
        <param name="datePattern" value="Y-m-d" />
    </appender>
    
    <appender name="toHTML" class="LoggerAppenderEcho">
        <layout class="LoggerLayoutHtml">
            <param name="title" value="DBManager Logger" />
        </layout>
    </appender>
 
    <logger name="DBManager">
        <appender_ref ref="FileAppender" />
    </logger>
    <logger name="Accounts">
        <appender_ref ref="FileAppender" />
    </logger>
    
    <root>
        <level value="DEBUG" />
        <appender_ref ref="ConsoleAppender" />
        <appender_ref ref="toHTML" />
    </root>
</configuration>
For more information send a message to info at phpclasses dot org.