Commit Graph

9 Commits (e1e31637520a08421d93180b27e5c534571b6ea1)

Author SHA1 Message Date
Marko Mikulicic f2c7454274
fix: Use layered tracing 2021-06-28 18:37:12 +02:00
Marko Mikulicic 1ff0e8d8d4
fix: Fix trailing newline emission in case of truncated log line 2021-06-28 12:23:53 +02:00
Marko Mikulicic 15b709f89c
fix: Increase line buffer to avoid frequent interleaved logs 2021-06-25 17:41:28 +02:00
Marko Mikulicic 22aa80969d
test: Ensure disabled logs don't eval args 2021-06-25 10:16:43 +02:00
Marko Mikulicic 5175ecbbe1
chore: Add our linting rules to the trogging crate 2021-06-23 17:10:17 +02:00
Marko Mikulicic 4adf3b5e52
chore: Split LoggingConfig out of TracingConfig
Client CLI utils only need LoggingConfig. Servers need also the TracingConfig
2021-06-16 16:07:57 +02:00
Marko Mikulicic 58e1494ca2
chore: Allow custom default log level
This PR moves the definition of the `log_filter` default value from the `structopt` annotation
to the `trogging::Builder`. This allows users of `trogging` to define their own default value
for the log level.
2021-06-16 13:30:32 +02:00
Marko Mikulicic 760bcde3f0
feat: Factor out tracing/logging CLI options
This PR factors out the tracing/logging CLI optinos into the `trogging` utility crate,
so that multiple binaries from the IOx suite (such as conductor) can use the same (and quite complex)
logging/tracing configuration options (flags and env vars).

Closes influxdata/conductor#343
2021-06-16 00:54:11 +02:00
Marko Mikulicic bde35cf5be
chore: Pull tracing+logging setup in its own crate
1. so that it can be reused by other binaries (e.g. conductor)
2. so that it's faster to build when working on it.
2021-06-15 14:52:04 +02:00