-
Notifications
You must be signed in to change notification settings - Fork 186
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
Support logging to file #1816
Support logging to file #1816
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
nice. logging to file and tailing works fine ;-) |
SonarCloud Quality Gate failed. |
Sonar is going to have a hard time with PR's across our extensions, since there is, by definition, lots of duplicated code. I suggest tweaking the duplication setting on the ownCloud quality gate to a value higher than 50%, at least for extension folders, if it is possible. cc @C0rby |
When running supervised, support for configuring all logs to a single log file:
OCIS_LOG_FILE=/Users/foo/bar/ocis.log MICRO_REGISTRY=etcd bin/ocis server
Supports directing log from single extensions to a log file:
PROXY_LOG_FILE=/Users/foo/bar/proxy.log MICRO_REGISTRY=etcd bin/ocis proxy
TODO
Docs
OCIS File Logging
Design Choices:
Use Cases
OCIS_LOG_FILE=/Users/foo/bar/ocis OCIS_LOG_PRETTY=true OCIS_LOG_COLOR=true bin/ocis server
OCIS_LOG_FILE=/Users/foo/bar/proxy.log OCIS_LOG_PRETTY=true OCIS_LOG_COLOR=true bin/ocis proxy
PROXY_LOG_FILE=/Users/foo/bar/proxy.log go run cmd/proxy/main.go server
ocis run proxy