forked from ashwanthkumar/scraphp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
log4php.xml
39 lines (34 loc) · 1.36 KB
/
log4php.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns="http://logging.apache.org/log4php/">
<!-- Logger used for logging in internal datastore using SQLite -->
<!-- Uncomment for logging into internal SQLite Datastore
<appender name="default" class="LoggerAppenderPDO">
<param name="dsn" value="sqlite:./data/log.db" />
</appender>
-->
<!-- Logger used for logging in RDBMS datastore using PDO -->
<!-- Enable for logging into the internal database
<appender name="default" class="LoggerAppenderPDO">
<param name="dsn" value="mysql:host=localhost;dbname=pricedb" />
<param name="user" value="root" />
<param name="password" value="secret" />
<param name="table" value="log_table" />
</appender>
-->
<!-- Default Logger to file on ./logs/scrapper.log -->
<appender name="default" class="LoggerAppenderFile">
<layout class="LoggerLayoutTTCC" />
<param name="file" value="./logs/scrapper.log" />
<param name="append" value="true" />
</appender>
<appender name="verboseAppender" class="LoggerAppenderConsole" />
<logger name="verbose">
<level value="TRACE" />
<appender_ref ref="verboseAppender" />
</logger>
<root>
<level value="INFO" />
<!-- By default we use the File based logger -->
<appender_ref ref="default" />
</root>
</configuration>