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:
Jan Lindemann 2026-06-13 20:29:59 +02:00 • committed by janware DevOps
commit d15177a9a8
Signed by: DevOps
SSH key fingerprint: SHA256:cZiw7ExG5q3KAVm7Jse3rGITowu0VjgUgNMPbifmY8g

View file

@ -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