Mozi
60889b7296
Log: left align the level name with padding ( #539 )
...
* Change log format for brief
- prepend %(levelname)s:
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* Update test expectations for error/warning messages
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* log: left align the level name with padding
Why 8: sizeof("CRITICAL") == 8
Ref:
printf-style String Formatting § Built-in Types — Python 3 documentation
https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting
* log: remove the duplicate "warning" words
Co-authored-by: Hiroshi Miura <miurahr@linux.com >
2022-07-18 22:29:16 +09:00
David Dalcino
89873da8b3
Implement GH Action that checks combinations.py
...
This is set to run once per month, and on every push.
Before merging this PR, "push" should be removed from the list of
events that trigger the script, which should not be run so frequently.
The "push" event is turned on for testing only.
2021-07-19 20:26:52 -07:00
David Dalcino
72ef17c7b1
Rename aqt.list logger to aqt.metadata
...
This follows the convention set out by the rest of the project, where
the loggers are all named after the files in which they are used.
2021-07-18 01:34:28 -07:00
Hiroshi Miura
15267182fa
Refactoring class structure: Factory class, Data and consumer ( #309 )
...
* Introduce tooldata class
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* Refactoring list command
- Introduce show_list function that is part of UI
- ListCommand class can be used as library to retrieve metadata.
- Rename ListCommand to MetadataFactory
- Rename action method to getList
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
2021-07-15 11:48:39 +09:00
Hiroshi Miura
f35edf398a
Fix logging in installer sub-process when multiprocessing context with spawn method ( #273 )
...
* Simplify logging
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* Update logging
- keep logging file path in Settings
- introduce installer logger
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* PEP8/Black
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* Logging: add queue handler
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* Logging: introduce logutils module
- Add QueueListenerHandler
- Add queue listener handler config
- qualname to aqt.installer
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* Logging: introduce aqt.updater logger
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* Logging: introduce aqt.main and aqt.archives logger
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* PEP8/Black
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* Logging: simplify config file
- use propergate for last output handler
- change formatter
* console: brief
* file: verbose
- Use multiprocessing.Queue() instead of queue.Queue()
- Remember logging config file customization in Settings
- QueueListener use handler as of getLogger("aqt").handlers
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* change log level of redirection
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* Logging: Single global LoggingQueueListener
- Global instance of LoggingQueueListener
- Drop queue_listener from logging.ini
- Generate QueueHandler from LoggingQueueLisnter.get_queue_handler
- Explicitly close QueueListenerHandler and Queue object.
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* CI: use verbose console logging for ci
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* CLI: drop options to specify logger and logger configuration file
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* Make Instance of LoggingQueueListener in Cli class
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* Handle QueueListener in Cli.call_installer
- Use mp.Manager().Queue()
- start(), stop() in caller
- Gracefully close QueueHandler in installer
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* PEP8
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* Drop berkeley.edu from fallbacks of mirror site
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* Fix log format of time digits
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* Update settings load
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* CI: catch custom settings from change in master branch
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* Show log when loading custom settings
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* Improve subprocess logging that use root logger
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* fix logging.ini settings
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* Fix against tests
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* Introduce MyQueueListener
- Inherit System QueueListner to override logger name
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
* PEP8/Black
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
2021-06-21 15:25:00 +09:00
Hiroshi Miura
93209613f6
Update logging configuration
...
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
2019-11-24 22:26:14 +09:00
Hiroshi Miura
6ab2a1fc6e
Switch logging config to ini format
...
Implement #61
Signed-off-by: Hiroshi Miura <miurahr@linux.com >
2019-11-18 16:11:50 +09:00