Skip to content

Make syslog identifier more intuitive#412

Open
fangebee wants to merge 1 commit intosimonrob:mainfrom
fangebee:change-syslog-identifier
Open

Make syslog identifier more intuitive#412
fangebee wants to merge 1 commit intosimonrob:mainfrom
fangebee:change-syslog-identifier

Conversation

@fangebee
Copy link

My fix for #411

_LOGGER = None
_HANDLER = None
_DATE_FORMAT = '%Y-%m-%d %H:%M:%S:'
_SYSLOG_MESSAGE_FORMAT = '%s: %%(message)s' % APP_NAME
Copy link
Owner

Choose a reason for hiding this comment

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

Changing the name makes sense, but why do we need to remove the : too?

Copy link
Author

Choose a reason for hiding this comment

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

this woould make the : part of the syslog identifier, which is not desirable IMO

Copy link
Owner

Choose a reason for hiding this comment

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

Thinking about this further, would it be better to remove _SYSLOG_MESSAGE_FORMAT entirely, and just use APP_SHORT_NAME when setting up the logger? That would fall back to the logger's standard format, which is likely to be more widely expected/supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants