Skip to content
This repository was archived by the owner on May 12, 2023. It is now read-only.

Support setting the log level.#7

Open
kill9zombie wants to merge 1 commit intocomandeo:masterfrom
kill9zombie:levels
Open

Support setting the log level.#7
kill9zombie wants to merge 1 commit intocomandeo:masterfrom
kill9zombie:levels

Conversation

@kill9zombie
Copy link

Set the log level either in the constructor or via the 'level' property.

For example:

logger = Syslog::Logger.new(
  facility: Syslog::Facility::LOCAL1,
  level: Syslog::Severity::INFO
)

# .. then optionally change the level later
logger.level = Syslog::Severity::DEBUG

In my scenario we read the log level from a config file, so we might end up changing it after the object is created.

Thanks for the shard, it's just what we needed.

Set the log level either in the constructor or via the 'level' property.
@comandeo comandeo self-assigned this Mar 4, 2019
@comandeo comandeo removed their assignment May 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments