This commit is contained in:
2026-08-29 19:12:14 +07:00
parent 3780eb41df
commit c078948a7c
-2
View File
@@ -1174,8 +1174,6 @@ end
""" """
log(msg; service_name, nats_conn, nats_status_topic, log_dir, log_file)
Write a log entry to a local markdown file and optionally publish it to a NATS status topic. Write a log entry to a local markdown file and optionally publish it to a NATS status topic.
Each entry is prefixed with a timestamp and service name: `-[YYYY-MM-DDTHH:MM:SS.sss] [serviceName] msg`. Each entry is prefixed with a timestamp and service name: `-[YYYY-MM-DDTHH:MM:SS.sss] [serviceName] msg`.
The log file is capped at 100 entries (oldest entries are truncated on rotation). The log file is capped at 100 entries (oldest entries are truncated on rotation).