Skip to content
This repository was archived by the owner on Nov 5, 2021. It is now read-only.

Comments

Cloudprober logging improvements.#330

Merged
manugarg merged 1 commit intomasterfrom
63729A23134379909BFCA3AC3C378B48
Dec 11, 2019
Merged

Cloudprober logging improvements.#330
manugarg merged 1 commit intomasterfrom
63729A23134379909BFCA3AC3C378B48

Conversation

@manugarg
Copy link
Contributor

= Make it possible to enable debug log by log name (--debug_logname_regex=).
= Add a flag do disable cloud logging (--disable_cloud_logging).
= Provide a way to enable debug log and disable cloud through environment variables: CLOUDPROBER_DEBUG_LOG, CLOUDPROBER_DISABLE_CLOUD_LOGGING.

Example run:
./cloudprober --config_file=/tmp/cloudprober.cfg --debug_log_regex=.gcs.
--debug_logname_regex=.gcs. --logtostderr

To disable cloud logging for all subsystems:
./cloudprober --config_file=/tmp/cloudprober.cfg --disable_cloud_logging

Fix #322.

PiperOrigin-RevId: 285027647

= Make it possible to enable debug log by log name (--debug_logname_regex=<logNameRegex>).
= Add a flag do disable cloud logging (--disable_cloud_logging).
= Provide a way to enable debug log and disable cloud through environment variables: CLOUDPROBER_DEBUG_LOG, CLOUDPROBER_DISABLE_CLOUD_LOGGING.

Example run:
./cloudprober --config_file=/tmp/cloudprober.cfg --debug_log_regex=.*gcs.* \
  --debug_logname_regex=.*gcs.* --logtostderr

To disable cloud logging for all subsystems:
./cloudprober --config_file=/tmp/cloudprober.cfg --disable_cloud_logging

PiperOrigin-RevId: 285027647
@manugarg manugarg merged commit 9d4c2f6 into master Dec 11, 2019
@manugarg manugarg deleted the 63729A23134379909BFCA3AC3C378B48 branch December 11, 2019 22:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make cloud logging optional

1 participant