MCPcopy Create free account
hub / github.com/Cats-Team/AdRules / log

Function log

script/sort.py:5–8  ·  view source on GitHub ↗

格式化日志输出

(message)

Source from the content-addressed store, hash-verified

3from datetime import datetime
4
5def log(message):
6 """格式化日志输出"""
7 timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
8 print(f"[INFO] {timestamp} - {message}")
9
10def process_rule(file_path):
11 if not os.path.exists(file_path):

Callers 1

process_ruleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected