Skip to content

Commit

Permalink
Fixes #151. Updating loggers to properly rotate files.
Browse files Browse the repository at this point in the history
  • Loading branch information
arlake228 committed Feb 20, 2025
1 parent b5a8eae commit d71e77e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 21 deletions.
12 changes: 3 additions & 9 deletions psconfig/perfsonar-psconfig/etc/grafana-agent-logger.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ handlers=fileRotateTransaction
class=handlers.RotatingFileHandler
level=INFO
formatter=patternLayout
maxBytes=16777216
backupCount=7
args=('/var/log/perfsonar/psconfig-grafana-agent-tasks.log', 'a')
args=('/var/log/perfsonar/psconfig-grafana-agent-tasks.log', 'a', 16777216, 7)

[handler_nullRoot]
class=logging.NullHandler
Expand All @@ -49,14 +47,10 @@ class=logging.NullHandler
class=handlers.RotatingFileHandler
level=INFO
formatter=rootPatternLayout
maxBytes=16777216
backupCount=7
args=('/var/log/perfsonar/psconfig-grafana-agent.log', 'a')
args=('/var/log/perfsonar/psconfig-grafana-agent.log', 'a', 16777216, 7)

[handler_fileRotateTransaction]
class=handlers.RotatingFileHandler
level=DEBUG
formatter=patternLayout
maxBytes=16777216
backupCount=7
args=('/var/log/perfsonar/psconfig-grafana-agent-transactions.log', 'a')
args=('/var/log/perfsonar/psconfig-grafana-agent-transactions.log', 'a', 16777216, 7)
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,4 @@ class=logging.NullHandler
class=handlers.RotatingFileHandler
level=INFO
formatter=rootPatternLayout
maxBytes=16777216
backupCount=7
args=('/var/log/perfsonar/psconfig-hostmetrics-agent.log', 'a')
args=('/var/log/perfsonar/psconfig-hostmetrics-agent.log', 'a', 16777216, 7)
12 changes: 3 additions & 9 deletions psconfig/perfsonar-psconfig/etc/pscheduler-agent-logger.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ handlers=fileRotateTransaction
class=handlers.RotatingFileHandler
level=INFO
formatter=patternLayout
maxBytes=16777216
backupCount=7
args=('/var/log/perfsonar/psconfig-pscheduler-agent-tasks.log', 'a')
args=('/var/log/perfsonar/psconfig-pscheduler-agent-tasks.log', 'a', 16777216, 7)

[handler_nullRoot]
class=logging.NullHandler
Expand All @@ -50,14 +48,10 @@ args=()
class=handlers.RotatingFileHandler
level=INFO
formatter=rootPatternLayout
maxBytes=16777216
backupCount=7
args=('/var/log/perfsonar/psconfig-pscheduler-agent.log', 'a')
args=('/var/log/perfsonar/psconfig-pscheduler-agent.log', 'a', 16777216, 7)

[handler_fileRotateTransaction]
class=handlers.RotatingFileHandler
level=DEBUG
formatter=patternLayout
maxBytes=16777216
backupCount=7
args=('/var/log/perfsonar/psconfig-pscheduler-agent-transactions.log', 'a')
args=('/var/log/perfsonar/psconfig-pscheduler-agent-transactions.log', 'a', 16777216, 7)

0 comments on commit d71e77e

Please sign in to comment.