| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- # Licensed to Cloudera, Inc. under one
- # or more contributor license agreements. See the NOTICE file
- # distributed with this work for additional information
- # regarding copyright ownership. Cloudera, Inc. licenses this file
- # to you 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.
- ########################################
- # Definition for the different objects
- # - FOR DEVELOPMENT ONLY -
- #
- # Directories where log files are kept must already exist.
- # That's why we pick /tmp.
- #
- # The loggers are configured to write to the log files ONLY.
- # Developers may set the DESKTOP_DEBUG environment variable to
- # enable stderr logging output.
- ########################################
- [logger_root]
- handlers=logfile,errorlog
- [logger_access]
- handlers=accesslog
- qualname=access
- [logger_django_auth_ldap]
- handlers=accesslog
- qualname=django_auth_ldap
- [logger_kazoo_client]
- level=INFO
- handlers=errorlog
- qualname=kazoo.client
- [logger_djangosaml2]
- level=INFO
- handlers=errorlog
- qualname=djangosaml2
- [logger_requests_packages_urllib3_connectionpool]
- level=DEBUG
- handlers=errorlog
- qualname=requests.packages.urllib3.connectionpool
- [logger_django_db]
- level=DEBUG
- handlers=errorlog
- qualname=django.db.backends
- [handler_stderr]
- class=StreamHandler
- formatter=default
- level=DEBUG
- args=(sys.stderr,)
- [handler_accesslog]
- class=handlers.RotatingFileHandler
- level=INFO
- propagate=True
- formatter=access
- args=('%LOG_DIR%/%PROC_NAME%.log', 'a', 1000000, 3)
- [handler_errorlog]
- class=handlers.RotatingFileHandler
- level=ERROR
- formatter=default
- args=('%LOG_DIR%/%PROC_NAME%.log', 'a', 1000000, 3)
- [handler_logfile]
- class=handlers.RotatingFileHandler
- # Choices are DEBUG, INFO, WARNING, ERROR, CRITICAL
- level=DEBUG
- formatter=default
- args=('%LOG_DIR%/%PROC_NAME%.log', 'a', 1000000, 3)
- [formatter_default]
- class=desktop.log.formatter.Formatter
- format=[%(asctime)s] %(module)-12s %(levelname)-8s %(message)s
- datefmt=%d/%b/%Y %H:%M:%S %z
- [formatter_access]
- class=desktop.log.formatter.Formatter
- format=[%(asctime)s] %(levelname)-8s %(message)s
- datefmt=%d/%b/%Y %H:%M:%S %z
- ########################################
- # A summary of loggers, handlers and formatters
- ########################################
- [loggers]
- keys=root,access,django_auth_ldap,kazoo_client,requests_packages_urllib3_connectionpool,djangosaml2,django_db
- [handlers]
- keys=stderr,logfile,accesslog,errorlog
- [formatters]
- keys=default,access
|