MCPcopy
hub / github.com/TechXueXi/TechXueXi / log_daily

Function log_daily

SourcePackages/pdlearn/log.py:6–9  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

4 return datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
5
6def log_daily(text):
7 text = text+"\n"
8 with open("user/daily.log", "a", encoding = 'utf-8') as f:
9 f.write(text)
10

Callers 2

answer_questionFunction · 0.85
dailyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected