File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
src/seclab_taskflow_agent Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1- * .log
21.direnv
32.envrc
43
@@ -14,6 +13,9 @@ __pycache__/
1413# C extensions
1514* .so
1615
16+ # Logs directory
17+ logs /
18+
1719# Distribution / packaging
1820.Python
1921build /
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3838
3939# only model output or help message should go to stdout, everything else goes to log
4040logging .getLogger ('' ).setLevel (logging .NOTSET )
41+ log_dir = pathlib .Path ("logs" )
42+ log_dir .mkdir (parents = True , exist_ok = True )
4143log_file_handler = RotatingFileHandler (
42- 'logs/ task_agent.log' ,
44+ log_dir . joinpath ( ' task_agent.log') ,
4345 maxBytes = 1024 * 1024 * 10 ,
4446 backupCount = 10 )
4547log_file_handler .setLevel (os .getenv ('TASK_AGENT_LOGLEVEL' , default = 'DEBUG' ))
You can’t perform that action at this time.
0 commit comments