Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass logger as a object.New() funcopt #434

Merged
merged 9 commits into from
Oct 25, 2023
Merged

Conversation

cvaroqui
Copy link
Member

No description provided.

Let the caller decide of the logger config, if any.

This patch add a objectlogger package to make it easy for a
object.New* caller to create a logger that satisfies the opensvc
CRM expectations.
Now the test must allocate a objectlogger logger to get a log
file. The default behaviour is now to not create a logs if not
asked to do so.
Stop logging to our own log files.

Start reworking the logs so the message includes the revelent
key infos in a grammatically correct phrase. Because journalctl
doesn't show keys by default, and adds many keys that don't help
reading logs with keys.
@cgalibern cgalibern marked this pull request as ready for review October 23, 2023 07:08
@cgalibern cgalibern merged commit cf59f8a into opensvc:main Oct 25, 2023
1 check failed
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.

None yet

2 participants