Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion openedx/core/lib/logsettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,16 @@ def get_logger_config(log_dir, # lint-amnesty, pylint: disable=unused-argument
'facility': SysLogHandler.LOG_LOCAL1,
'formatter': 'raw',
},
'tracking_file': {
'level': 'DEBUG',
'class': 'logging.handlers.WatchedFileHandler',
'filename': '/edx/var/log/tracking/tracking_events.log',
'formatter': 'raw',
Comment on lines +90 to +92
},
Comment on lines +88 to +93
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of adding tracking_file here, I think what we should do is modify the LOGGING variable in our custom docker-production env file that we create in the dockerfile. We might insert a line like LOGGING['handlers']['tracking'] = ... after the line I highlight there, for instance.

},
'loggers': {
'tracking': {
'handlers': ['tracking'],
'handlers': ['tracking', 'tracking_file'],
'level': 'DEBUG',
'propagate': False,
},
Expand Down
Loading