Skip to content

Conversation

@devmaxde
Copy link
Contributor

Introducing the @metricq_syslog() wrapper for click commands, that configures the logger to sent to a Syslog Location (local or remote)

@devmaxde devmaxde changed the title Feat syslog feat: Syslog wrapper Oct 29, 2024
@devmaxde devmaxde force-pushed the feat_syslog branch 5 times, most recently from ccc4a3b to 5ce43fe Compare November 5, 2024 13:56
@devmaxde devmaxde force-pushed the feat_syslog branch 3 times, most recently from 8168afe to 7eb526a Compare November 12, 2024 13:14
@devmaxde devmaxde force-pushed the feat_syslog branch 3 times, most recently from a214a5e to 7d769bb Compare December 10, 2024 13:52
@devmaxde devmaxde changed the title feat: Syslog wrapper feat: metricq_syslog_option Dec 10, 2024
@devmaxde devmaxde force-pushed the feat_syslog branch 7 times, most recently from ec772e1 to fa80633 Compare December 11, 2024 15:31
if value == "":
value = None

program_name = ctx.params.get("token", "metricq.program")
Copy link
Member

Choose a reason for hiding this comment

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

The default should be the process name instead. Or argv[0].

If used without parameter (for example: ``metricq-check --syslog`` ) the Syslog will default to localhost:514.
You can also specify a Unix socket (for example: /dev/log) or a custom host (for example: example.com:5114)
by adding the value to the syslog flag (for example: ``metricq-check --syslog example.com:5114``)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
by adding the value to the syslog flag (for example: ``metricq-check --syslog example.com:5114``)
by adding the value to the syslog flag (for example: ``metricq-check --syslog example.com:514``)

If used without parameter (for example: ``metricq-check --syslog`` ) the Syslog will default to localhost:514.
You can also specify a Unix socket (for example: /dev/log) or a custom host (for example: example.com:5114)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
You can also specify a Unix socket (for example: /dev/log) or a custom host (for example: example.com:5114)
You can also specify a Unix socket (for example: /dev/log) or a custom host (for example: example.com:514)

@bmario bmario merged commit b3755e7 into master Dec 19, 2024
12 checks passed
@bmario bmario deleted the feat_syslog branch December 19, 2024 09:14
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.

3 participants