log: Add log()
In a push to harmonize jw.pkg and jw.util logging APIs, add the aliases log() for slog() log_m() for slog_m() Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
8681317e8c
commit
d15177a9a8
1 changed files with 3 additions and 0 deletions
|
|
@ -355,3 +355,6 @@ def add_log_file(path: str) -> None: # export
|
|||
global _log_file_streams
|
||||
fd = open(path, 'w', buffering = 1)
|
||||
_log_file_streams.append(fd)
|
||||
|
||||
log = slog
|
||||
log_m = slog_m
|
||||
|
|
|
|||
Loading…
Reference in a new issue