bootique / bootique-logback

Provides Logback integration with Bootique
http://bootique.io
Apache License 2.0
6 stars 10 forks source link

CLI-driven log levels #38

Closed elena-bondareva closed 7 years ago

elena-bondareva commented 7 years ago

Ref: bootique/bootique#101

elena-bondareva commented 7 years ago

Travis failure root cause: BQ 0.24-SNAPSHOT with changes for bootique/bootique#111 must be published into Nexus.

andrus commented 7 years ago

I am wondering if our initial design of just changing the root log level is not practical after all:

So maybe a better approach would be to create LogbackModuleExtender that would allow passing configuration resource URLs for "normal" and "verbose" modes. By default we'd use "log.level=debug" as a verbose mode config.

andrus commented 7 years ago

Another thought... I suspect many apps may not want verbosity flags to be present at all (to keep their CLI simple). So to make this whole feature optional, maybe we can implement it as a separate module that can be included if needed. It can be called "logback-verbosity" or something.