updates to api and logging
This commit is contained in:
1 parent
e40e80bfb5
commit
4e4ddbf92a
4 files changed
+57
-46
No files matched your search
@@ -0,0 +1,7 @@
|
||||
"""Logging utilities for NFOguard"""
|
||||
|
||||
from datetime import datetime, timezone
|
||||
|
||||
def _log(level: str, msg: str):
|
||||
"""Basic logging function that writes to console"""
|
||||
print(f"[{datetime.now(timezone.utc).isoformat(timespec='seconds')}] {level}: {msg}")
|
||||
Reference in new issue
Block a user