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