-
Notifications
You must be signed in to change notification settings - Fork 895
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure
logging.yml
is optional and tidy logging config (#1543)
- Loading branch information
1 parent
81747a6
commit 3560063
Showing
32 changed files
with
205 additions
and
431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 34 additions & 45 deletions
79
features/steps/test_starter/{{ cookiecutter.repo_name }}/conf/base/logging.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,44 @@ | ||
version: 1 | ||
|
||
disable_existing_loggers: False | ||
|
||
formatters: | ||
simple: | ||
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s" | ||
json_formatter: | ||
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s" | ||
class: pythonjsonlogger.jsonlogger.JsonFormatter | ||
simple: | ||
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s" | ||
|
||
handlers: | ||
console: | ||
class: logging.StreamHandler | ||
level: INFO | ||
formatter: simple | ||
stream: ext://sys.stdout | ||
|
||
info_file_handler: | ||
class: logging.handlers.RotatingFileHandler | ||
level: INFO | ||
formatter: simple | ||
filename: logs/info.log | ||
maxBytes: 10485760 # 10MB | ||
backupCount: 20 | ||
encoding: utf8 | ||
delay: True | ||
|
||
error_file_handler: | ||
class: logging.handlers.RotatingFileHandler | ||
level: ERROR | ||
formatter: simple | ||
filename: logs/errors.log | ||
maxBytes: 10485760 # 10MB | ||
backupCount: 20 | ||
encoding: utf8 | ||
delay: True | ||
console: | ||
class: logging.StreamHandler | ||
level: INFO | ||
formatter: simple | ||
stream: ext://sys.stdout | ||
|
||
loggers: | ||
anyconfig: | ||
level: WARNING | ||
handlers: [console, info_file_handler, error_file_handler] | ||
propagate: no | ||
info_file_handler: | ||
class: logging.handlers.RotatingFileHandler | ||
level: INFO | ||
formatter: simple | ||
filename: logs/info.log | ||
maxBytes: 10485760 # 10MB | ||
backupCount: 20 | ||
encoding: utf8 | ||
delay: True | ||
|
||
kedro.io: | ||
level: INFO | ||
handlers: [console, info_file_handler, error_file_handler] | ||
propagate: no | ||
error_file_handler: | ||
class: logging.handlers.RotatingFileHandler | ||
level: ERROR | ||
formatter: simple | ||
filename: logs/errors.log | ||
maxBytes: 10485760 # 10MB | ||
backupCount: 20 | ||
encoding: utf8 | ||
delay: True | ||
|
||
kedro.pipeline: | ||
level: INFO | ||
handlers: [console, info_file_handler, error_file_handler] | ||
propagate: no | ||
loggers: | ||
kedro: | ||
level: INFO | ||
|
||
root: | ||
{{ cookiecutter.python_package }}: | ||
level: INFO | ||
handlers: [console, info_file_handler, error_file_handler] | ||
|
||
root: | ||
handlers: [console, info_file_handler, error_file_handler] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,21 @@ | ||
version: 1 | ||
|
||
disable_existing_loggers: False | ||
|
||
formatters: | ||
simple: | ||
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s" | ||
simple: | ||
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s" | ||
|
||
handlers: | ||
console: | ||
class: logging.StreamHandler | ||
level: INFO | ||
formatter: simple | ||
stream: ext://sys.stdout | ||
|
||
info_file_handler: | ||
class: logging.handlers.RotatingFileHandler | ||
level: INFO | ||
formatter: simple | ||
filename: info.log | ||
maxBytes: 10485760 # 10MB | ||
backupCount: 20 | ||
encoding: utf8 | ||
delay: True | ||
|
||
error_file_handler: | ||
class: logging.handlers.RotatingFileHandler | ||
level: ERROR | ||
formatter: simple | ||
filename: errors.log | ||
maxBytes: 10485760 # 10MB | ||
backupCount: 20 | ||
encoding: utf8 | ||
delay: True | ||
console: | ||
class: logging.StreamHandler | ||
level: INFO | ||
formatter: simple | ||
stream: ext://sys.stdout | ||
|
||
loggers: | ||
kedro.framework.cli.hooks.manager: | ||
level: INFO | ||
handlers: [console] | ||
propagate: no | ||
|
||
kedro: | ||
level: INFO | ||
kedro: | ||
level: INFO | ||
|
||
root: | ||
handlers: [console, info_file_handler, error_file_handler] | ||
handlers: [console] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.