mirror of
https://github.com/RoboSats/robosats-nostr-sync.git
synced 2025-08-02 08:01:42 +00:00
11 lines
263 B
Python
11 lines
263 B
Python
# logs.py
|
|
|
|
import sys
|
|
from datetime import datetime
|
|
|
|
log_file_path = '/app/log/app.log'
|
|
|
|
def print_log(*args, **kwargs):
|
|
message = ' '.join(map(str, args))
|
|
with open(log_file_path, 'a') as log_file:
|
|
log_file.write(f"{datetime.now()}: {message}\n") |