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

feat(server): make log format configurable #20

Merged
merged 6 commits into from
Dec 27, 2020
Merged

Conversation

sternenseemann
Copy link
Owner

No description provided.

Previously the error message for not allowed would be returned instead
of the more descriptive "does not exist"
* privacyLogHandler and defaultLogHandler are the example log handlers
  The latter is a simple wrapper around toLogStr, the former doesn't
  log any IP addresses.
* filterMessageLevel and LogLevel facilities allow setting a log level
  more easily.
add new "log" config entry with the following sub-options:

* enable: whether to log
* hide-ips: whether to hide ips in log output
* hide-time: whether to disable timestamps in log output
* level: log level ("info" or "error")

This is used to set the appropriate GopheLogConfig.
@sternenseemann sternenseemann linked an issue Dec 27, 2020 that may be closed by this pull request
4 tasks
@sternenseemann sternenseemann merged commit 447acd6 into master Dec 27, 2020
@sternenseemann sternenseemann deleted the log-config-server branch December 27, 2020 21:48
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.

Improve Logging
1 participant