alex_sh | 9d980ce | 2017-08-23 17:30:56 -0400 | [diff] [blame] | 1 | # ================================================================================
|
Schmalzried, Terry (ts862m) | 05f475f | 2019-11-13 16:47:45 -0500 | [diff] [blame] | 2 | # Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved.
|
alex_sh | 9d980ce | 2017-08-23 17:30:56 -0400 | [diff] [blame] | 3 | # ================================================================================
|
| 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 | # ============LICENSE_END=========================================================
|
| 16 | #
|
| 17 | # ECOMP is a trademark and service mark of AT&T Intellectual Property.
|
| 18 |
|
| 19 |
|
| 20 | # You may change this file while your program is running and CommonLogger will automatically reconfigure accordingly.
|
| 21 | # Changing these parameters may leave old log files lying around.
|
| 22 |
|
| 23 |
|
| 24 | #--- Parameters that apply to all logs
|
| 25 | #
|
| 26 | # rotateMethod: time, size, stdout, stderr, none
|
| 27 | #... Note: the following two parameters apply only when rotateMethod=time
|
| 28 | # timeRotateIntervalType: S, M, H, D, W0 - W6, or midnight (seconds, minutes, hours, days, weekday (0=Monday), or midnight UTC)
|
| 29 | # timeRotateInterval: >= 1 (1 means every timeRotateIntervalType, 2 every other, 3 every third, etc.)
|
| 30 | #... Note: the following parameter applies only when rotateMethod=size
|
| 31 | # sizeMaxBytes: >= 0 (0 means no limit, else maximum filesize in Bytes)
|
| 32 | # backupCount: >= 0 (Number of rotated backup files to retain. If rotateMethod=time, 0 retains *all* backups. If rotateMethod=size, 0 retains *no* backups.)
|
| 33 | #
|
Schmalzried, Terry (ts862m) | 05f475f | 2019-11-13 16:47:45 -0500 | [diff] [blame] | 34 | rotateMethod = size
|
alex_sh | 9d980ce | 2017-08-23 17:30:56 -0400 | [diff] [blame] | 35 | timeRotateIntervalType = midnight
|
| 36 | timeRotateInterval = 1
|
Schmalzried, Terry (ts862m) | 05f475f | 2019-11-13 16:47:45 -0500 | [diff] [blame] | 37 | sizeMaxBytes = 10000000
|
| 38 | backupCount = 4
|
alex_sh | 9d980ce | 2017-08-23 17:30:56 -0400 | [diff] [blame] | 39 |
|
| 40 |
|
| 41 | #--- Parameters that define log filenames and their initial LogLevel threshold
|
| 42 | #... Note: CommonLogger will exit if your process does not have permission to write to the file.
|
| 43 | #
|
| 44 |
|
| 45 | error = logs/error.log
|
| 46 | errorLogLevel = WARN
|
| 47 | errorStyle = error
|
| 48 |
|
| 49 | metrics = logs/metrics.log
|
| 50 | metricsLogLevel = INFO
|
| 51 | metricsStyle = metrics
|
| 52 |
|
| 53 | audit = logs/audit.log
|
| 54 | auditLogLevel = INFO
|
| 55 | auditStyle = audit
|
| 56 |
|
| 57 | debug = logs/debug.log
|
| 58 | debugLogLevel = DEBUG
|
| 59 | debugStyle = debug
|