blob: 4dc2793c2cfafe791d7c9a90071d5462593c7474 [file] [log] [blame]
Ikram Ikramullah40b120b2018-05-01 11:35:40 -04001# Copyright © 2017 Amdocs, Bell Canada
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15[loggers]
16keys=root
17
18[handlers]
19keys=trfhand,consoleHandler,audithand,metrichand,errhand,debughand
20
21[logger_root]
22level=NOTSET
23handlers=trfhand,consoleHandler,audithand,metrichand,errhand,debughand
24
25[handler_consoleHandler]
26class=StreamHandler
27level=NOTSET
28formatter=generic
29args=(sys.stdout,)
30
31[handler_trfhand]
32class=handlers.TimedRotatingFileHandler
33level=NOTSET
34formatter=generic
35args=('application.log','midnight', 1, 10)
36
37[handler_audithand]
38class=handlers.TimedRotatingFileHandler
39level=INFO
40formatter=audit
41args=('audit.log', 'midnight', 1, 10)
42
43[handler_metrichand]
44class=handlers.TimedRotatingFileHandler
45level=INFO
46formatter=metric
47args=('metric.log','midnight', 1, 10)
48
49[handler_errhand]
50class=handlers.TimedRotatingFileHandler
51level=ERROR
52formatter=error
53args=('error.log','midnight', 1, 10)
54
55[handler_debughand]
56class=handlers.TimedRotatingFileHandler
57level=DEBUG
58formatter=generic
59args=('debug.log','midnight', 1, 10)
60
61[formatters]
62keys=generic,audit,metric,error
63
64[formatter_audit]
65format=%(asctime)s|%(asctime)s|00000000-0000-0000-0000-000000000000||%(thread)d||Conductor|N/A|COMPLETE|200|sucessful||%(levelname)s|||0|%(module)s|||||||||%(name)s : [-] %(message)s
66datefmt=
67
68[formatter_metric]
69format=%(asctime)s|%(asctime)s|00000000-0000-0000-0000-000000000000||%(thread)d||Conductor|N/A|N/A|N/A|COMPLETE|200|sucessful||%(levelname)s|||0|%(module)s||||||||||%(name)s : [-] %(message)s
70datefmt=
71
72[formatter_error]
73format=%(asctime)s|00000000-0000-0000-0000-000000000000|%(thread)d|Conductor|N/A|N/A|N/A|ERROR|500|N/A|%(name)s : [-] %(message)s
74datefmt=
75
76[formatter_generic]
77format=%(asctime)s||%(thread)d|%(levelname)s|%(module)s|%(name)s: [-] %(message)s
78datefmt=