This repository has been archived by the owner on Jan 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlog4crc
executable file
·213 lines (165 loc) · 11.8 KB
/
log4crc
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
If not stated otherwise in this file or this component's Licenses.txt file the
following copyright and licenses apply:
Copyright 2018 RDK Management
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE log4c SYSTEM "">
<log4c version="1.2.3">
<config>
<bufsize>0</bufsize>
<debug level="7"/>
<nocleanup>0</nocleanup>
<reread>1</reread>
</config>
<!--
Layouts
We have created custom layouts for both "basic" and "dated" formats
that have no carriage returns. All log statements must have their
own carriage returns, if desired.
Listed below are the available layouts.
-->
<layout name="basic" type="basic_nocr"/>
<layout name="dated" type="dated_nocr"/>
<layout name="comcast_dated" type="comcast_dated_nocr"/>
<!--
Appenders
Only use the appenders explicitly listed below for our file/stdout/
stderr appenders. This new appender has an explicit fflush() command
for each log that will ensure that stdout/stderr messages are output
to the screen immediately
stream_env - file or stdout/stderr with env var replacement
stream_env_append - same as stream_env, but appends to file instead
of overwrite
stream_env_plus_stdout - same as stream_env, with all messages
written to stdout as well
stream_env_append_plus_stdout - save stream_env_plus_stdout, but
appends file instead of overwrite
socket_env - TCP/IP socket
-->
<!--<rollingpolicy name="RI_rollingpolicy" type="sizewin" maxsize="10485760" maxnum="10"/>-->
<rollingpolicy name="TR69_rollingpolicy" type="sizewin" maxsize="2097152" maxnum="2"/>
<rollingpolicy name="WEBPA_rollingpolicy" type="sizewin" maxsize="2097152" maxnum="2"/>
<rollingpolicy name="PAM_rollingpolicy" type="sizewin" maxsize="2097152" maxnum="2"/>
<rollingpolicy name="PSM_rollingpolicy" type="sizewin" maxsize="2097152" maxnum="2"/>
<rollingpolicy name="CM_rollingpolicy" type="sizewin" maxsize="2097152" maxnum="2"/>
<rollingpolicy name="CR_rollingpolicy" type="sizewin" maxsize="2097152" maxnum="2"/>
<rollingpolicy name="RM_rollingpolicy" type="sizewin" maxsize="2097152" maxnum="2"/>
<rollingpolicy name="MTA_rollingpolicy" type="sizewin" maxsize="2097152" maxnum="2"/>
<rollingpolicy name="TDM_rollingpolicy" type="sizewin" maxsize="2097152" maxnum="2"/>
<rollingpolicy name="WIFI_rollingpolicy" type="sizewin" maxsize="2097152" maxnum="2"/>
<rollingpolicy name="SSD_rollingpolicy" type="sizewin" maxsize="2097152" maxnum="2"/>
<rollingpolicy name="LM_rollingpolicy" type="sizewin" maxsize="2097152" maxnum="2"/>
<rollingpolicy name="SNMP_rollingpolicy" type="sizewin" maxsize="2097152" maxnum="2"/>
<rollingpolicy name="FU_rollingpolicy" type="sizewin" maxsize="2097152" maxnum="2"/>
<!-- <appender name="stderr" type="stream_env" layout="dated"/>
<appender name="syslog" type="syslog" layout="basic"/>
<appender name="socket" type="socket_env" layout="basic"/> -->
<!-- <appender name="/var/tmp/rdk_log.txt" type="stream_env_plus_stdout" layout="dated" />-->
<appender name="RI_TR69rollingfileappender" type="rollingfile" logdir="/var/tmp/logs/" prefix="TR69log.txt" layout="comcast_dated" rollingpolicy="TR69_rollingpolicy"/>
<appender name="RI_WEBPArollingfileappender" type="rollingfile" logdir="/var/tmp/logs/" prefix="WEBPAlog.txt" layout="comcast_dated" rollingpolicy="WEBPA_rollingpolicy"/>
<appender name="RI_PAMrollingfileappender" type="rollingfile" logdir="/var/tmp/logs/" prefix="PAMlog.txt" layout="comcast_dated" rollingpolicy="PAM_rollingpolicy"/>
<appender name="RI_PSMrollingfileappender" type="rollingfile" logdir="/var/tmp/logs/" prefix="PSMlog.txt" layout="comcast_dated" rollingpolicy="PSM_rollingpolicy"/>
<appender name="RI_CMrollingfileappender" type="rollingfile" logdir="/var/tmp/logs/" prefix="CMlog.txt" layout="comcast_dated" rollingpolicy="CM_rollingpolicy"/>
<appender name="RI_CRrollingfileappender" type="rollingfile" logdir="/var/tmp/logs/" prefix="CRlog.txt" layout="comcast_dated" rollingpolicy="CR_rollingpolicy"/>
<appender name="RI_RMrollingfileappender" type="rollingfile" logdir="/var/tmp/logs/" prefix="RMlog.txt" layout="comcast_dated" rollingpolicy="RM_rollingpolicy"/>
<appender name="RI_MTArollingfileappender" type="rollingfile" logdir="/var/tmp/logs/" prefix="MTAlog.txt" layout="comcast_dated" rollingpolicy="MTA_rollingpolicy"/>
<appender name="RI_TDMrollingfileappender" type="rollingfile" logdir="/var/tmp/logs/" prefix="TDMlog.txt" layout="comcast_dated" rollingpolicy="TDM_rollingpolicy"/>
<appender name="RI_WIFIrollingfileappender" type="rollingfile" logdir="/var/tmp/logs/" prefix="WiFilog.txt" layout="comcast_dated" rollingpolicy="WIFI_rollingpolicy"/>
<appender name="RI_SSDrollingfileappender" type="rollingfile" logdir="/var/tmp/logs/" prefix="SSDlog.txt" layout="comcast_dated" rollingpolicy="SSD_rollingpolicy"/>
<appender name="RI_LMrollingfileappender" type="rollingfile" logdir="/var/tmp/logs/" prefix="LM.txt" layout="comcast_dated" rollingpolicy="LM_rollingpolicy"/>
<appender name="RI_SNMProllingfileappender" type="rollingfile" logdir="/var/tmp/logs/" prefix="SNMP.txt" layout="comcast_dated" rollingpolicy="SNMP_rollingpolicy"/>
<appender name="RI_FUrollingfileappender" type="rollingfile" logdir="/var/tmp/logs/" prefix="FUlog.txt" layout="comcast_dated" rollingpolicy="FU_rollingpolicy"/>
<!-- <appender name="stdout" type="stream_env" layout="comcast_dated"/> -->
<!--
Priorities (log levels)
Available priorities that can be applied to categories are listed
below in order of decreasing priority:
fatal
Indicates error severe enough to prevent RI from continuing to execute.
error
A significant error has occurred, preventing normal operation of the RI.
warn
Some problem has occurred, but application logic has been able to handle
it in a reasonable manner.
info
Used to monitor major (domain-level) operational behavior of the system.
debug
Mostly useful for developers to monitor internal logic and operational states.
trace
Only meaningful to developers, primarily for monitoring code execution paths.
-->
<!--
Top-most category for the RI Platform.
Declare the default logging configuration. This is done by declaring
the root category, associating it with a priority, and one of the
appenders declared above.
More detailed component-level logging can be enabled by specifying
lower levels for one or more of the categories listed below.
-->
<!--<category name="RI" priority="debug" appender="RI_rollingfileappender"/>-->
<category name="RI.TR69" priority="debug" appender="RI_TR69rollingfileappender"/>
<category name="RI.WEBPA" priority="debug" appender="RI_WEBPArollingfileappender"/>
<category name="RI.PAM" priority="debug" appender="RI_PAMrollingfileappender"/>
<category name="RI.PSM" priority="debug" appender="RI_PSMrollingfileappender"/>
<category name="RI.CR" priority="debug" appender="RI_CRrollingfileappender"/>
<category name="RI.MTA" priority="debug" appender="RI_MTArollingfileappender"/>
<category name="RI.CM" priority="debug" appender="RI_CMrollingfileappender"/>
<category name="RI.TDM" priority="debug" appender="RI_TDMrollingfileappender"/>
<category name="RI.WIFI" priority="debug" appender="RI_WIFIrollingfileappender"/>
<category name="RI.SSD" priority="debug" appender="RI_SSDrollingfileappender"/>
<category name="RI.LM" priority="debug" appender="RI_LMrollingfileappender"/>
<category name="RI.SNMP" priority="debug" appender="RI_SNMProllingfileappender"/>
<category name="RI.FU" priority="debug" appender="RI_FUrollingfileappender"/>
<!--
Logging categories available to the Platform are listed below
To enable additional logging add a 'priority' attribute for 1 or more
categories. For example, to enable INFO logging on the pipeline
category, the updated line would look like:
category name="RI.Pipeline" priority="info"
-->
<!-- <category name="RI.GLib" priority="debug" appender="RI_rollingfileappender"/> -->
<!-- CCSP Stack logging: This category is set with a low priority
level to enable stack messages of any level to pass through to
the log file
-->
<!-- <category name="RI.Stack" priority="debug" appender="RI_rollingfileappender"/> -->
<category name="RI.Stack.StdOut" />
<category name="RI.Stack.TR69" priority="debug" appender="RI_TR69rollingfileappender"/>
<!-- <category name="RI.Stack.LOG" priority="debug" appender="RI_rollingfileappender"/>
<category name="RI.Stack.LOG.RDK" priority="debug" appender="RI_rollingfileappender"/> -->
<category name="RI.Stack.LOG.RDK.TR69" priority="debug" appender="RI_TR69rollingfileappender"/>
<category name="RI.Stack.WEBPA" priority="debug" appender="RI_WEBPArollingfileappender"/>
<category name="RI.Stack.LOG.RDK.WEBPA" priority="debug" appender="RI_WEBPArollingfileappender"/>
<category name="RI.Stack.PAM" priority="debug" appender="RI_PAMrollingfileappender"/>
<category name="RI.Stack.LOG.RDK.PAM" priority="debug" appender="RI_PAMrollingfileappender"/>
<category name="RI.Stack.PSM" priority="debug" appender="RI_PSMrollingfileappender"/>
<category name="RI.Stack.LOG.RDK.PSM" priority="debug" appender="RI_PSMrollingfileappender"/>
<category name="RI.Stack.CR" priority="debug" appender="RI_CRrollingfileappender"/>
<category name="RI.Stack.LOG.RDK.CR" priority="debug" appender="RI_CRrollingfileappender"/>
<category name="RI.Stack.MTA" priority="debug" appender="RI_MTArollingfileappender"/>
<category name="RI.Stack.LOG.RDK.MTA" priority="debug" appender="RI_MTArollingfileappender"/>
<category name="RI.Stack.CM" priority="debug" appender="RI_CMrollingfileappender"/>
<category name="RI.Stack.LOG.RDK.CM" priority="debug" appender="RI_CMrollingfileappender"/>
<category name="RI.Stack.TDM" priority="debug" appender="RI_TDMrollingfileappender"/>
<category name="RI.Stack.LOG.RDK.TDM" priority="debug" appender="RI_TDMrollingfileappender"/>
<category name="RI.Stack.WiFi" priority="debug" appender="RI_WiFirollingfileappender"/>
<category name="RI.Stack.LOG.RDK.WIFI" priority="debug" appender="RI_WIFIrollingfileappender"/>
<category name="RI.Stack.SSD" priority="debug" appender="RI_SSDrollingfileappender"/>
<category name="RI.Stack.LOG.RDK.SSD" priority="debug" appender="RI_SSDrollingfileappender"/>
<category name="RI.Stack.LM" priority="debug" appender="RI_LMrollingfileappender"/>
<category name="RI.Stack.LOG.RDK.LM" priority="debug" appender="RI_LMrollingfileappender"/>
<category name="RI.Stack.SNMP" priority="debug" appender="RI_SNMProllingfileappender"/>
<category name="RI.Stack.LOG.RDK.SNMP" priority="debug" appender="RI_SNMProllingfileappender"/>
<category name="RI.Stack.FU" priority="debug" appender="RI_FUrollingfileappender"/>
<category name="RI.Stack.LOG.RDK.FU" priority="debug" appender="RI_FUrollingfileappender"/>
</log4c>