-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2550 from shaangill025/feat_per_tenant_logging
Feat: Per Tenant Logging
- Loading branch information
Showing
27 changed files
with
550 additions
and
447 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
27 changes: 27 additions & 0 deletions
27
aries_cloudagent/config/default_per_tenant_logging_config.ini
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[loggers] | ||
keys=root | ||
|
||
[handlers] | ||
keys=stream_handler, timed_file_handler | ||
|
||
[formatters] | ||
keys=formatter | ||
|
||
[logger_root] | ||
level=ERROR | ||
handlers=stream_handler, timed_file_handler | ||
|
||
[handler_stream_handler] | ||
class=StreamHandler | ||
level=DEBUG | ||
formatter=formatter | ||
args=(sys.stderr,) | ||
|
||
[handler_timed_file_handler] | ||
class=logging.handlers.TimedRotatingFileMultiProcessHandler | ||
level=DEBUG | ||
formatter=formatter | ||
args=('/home/aries/log/acapy-agent.log', 'd', 7, 1,) | ||
|
||
[formatter_formatter] | ||
format=%(asctime)s %(wallet_id)s %(levelname)s %(pathname)s:%(lineno)d %(message)s |
23 changes: 23 additions & 0 deletions
23
aries_cloudagent/config/default_per_tenant_logging_config.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: 1 | ||
formatters: | ||
default: | ||
format: '%(asctime)s %(wallet_id)s %(levelname)s %(pathname)s:%(lineno)d %(message)s' | ||
handlers: | ||
console: | ||
class: logging.StreamHandler | ||
level: DEBUG | ||
formatter: default | ||
stream: ext://sys.stderr | ||
rotating_file: | ||
class: logging.handlers.TimedRotatingFileMultiProcessHandler | ||
level: DEBUG | ||
filename: '/home/aries/log/acapy-agent.log' | ||
when: 'd' | ||
interval: 7 | ||
backupCount: 1 | ||
formatter: default | ||
root: | ||
level: INFO | ||
handlers: | ||
- console | ||
- rotating_file |
Oops, something went wrong.