This repository has been archived by the owner on Aug 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
s3napback.logconfig
64 lines (54 loc) · 2.71 KB
/
s3napback.logconfig
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
log4perl.rootLogger = DEBUG, Screen, Logfile
#log4perl.rootLogger = DEBUG, Screen, Logfile, Email
# Syntax for conversion patterns:
# %c Category of the logging event.
# %C Fully qualified package (or class) name of the caller
# %d Current date in yyyy/MM/dd hh:mm:ss format
# %F File where the logging event occurred
# %H Hostname (if Sys::Hostname is available)
# %l Fully qualified name of the calling method followed by the
# callers source the file name and line number between
# parentheses.
# %L Line number within the file where the log statement was issued
# %m The message to be logged
# %M Method or function where the logging request was issued
# %n Newline (OS-independent)
# %p Priority of the logging event
# %P pid of the current process
# %r Number of milliseconds elapsed from program start to logging
# event
# %T A stack trace of functions called
# %x The topmost NDC (see below)
# %X{key} The entry 'key' of the MDC (see below)
# %% A literal percent (%) sign
log4perl.appender.Screen = Log::Log4perl::Appender::Screen
log4perl.appender.Screen.min_level=info
log4perl.appender.Screen.layout = Log::Log4perl::Layout::PatternLayout
log4perl.appender.Screen.layout.ConversionPattern = %d %c %p %m%n
log4perl.appender.Logfile = Log::Log4perl::Appender::File
log4perl.appender.LogFile.min_level=info
log4perl.appender.Logfile.filename = /var/log/s3napback.log
log4perl.appender.Logfile.mode = append
log4perl.appender.Logfile.layout = Log::Log4perl::Layout::PatternLayout
log4perl.appender.Logfile.layout.ConversionPattern = %d %c %p %m%n
# Rotate log files (requires Log::Dispatch)
# log4perl.appender.Logfile = Log::Dispatch::FileRotate
# log4perl.appender.Logfile.filename = /var/log/s3napback.log
# log4perl.appender.Logfile.mode = append
# log4perl.appender.Logfile.max = 2
# log4perl.appender.Logfile.size = 10_000_000
# log4perl.appender.Logfile.layout = Log::Log4perl::Layout::PatternLayout
# log4perl.appender.Logfile.layout.ConversionPattern = %d %c %p %m%n
# Email logs (requires Log::Dispatch and Mail::Sender)
# log4perl.appender.Email = Log::Dispatch::Email::MailSender
# log4perl.appender.Email.to = me@company.com
# log4perl.appender.Email.from = me@company.com
# log4perl.appender.Email.subject = s3napback log
# log4perl.appender.Email.smtp = smtp.z.com
# log4perl.appender.Email.min_level = info
# log4perl.appender.Email.layout = Log::Log4perl::Layout::PatternLayout
# log4perl.appender.Email.layout.ConversionPattern = %d %c %p %m%n
log4perl.logger.Backup.S3napback = INFO
log4perl.logger.Backup.S3napback.Directory = INFO
log4perl.logger.Backup.S3napback.Subversion = INFO
log4perl.logger.Backup.S3napback.MySQL = INFO