Archived
fix(logging): suppress logback status messages in CLI output
- Add NopStatusListener to suppress logback initialization messages - Remove console appender from default root logger (file only) - CLI commands now show clean output without logging noise Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
92810cabee
commit
1ce74e0bc8
1 file changed
+4
-1
@@ -1,4 +1,7 @@
|
||||
<configuration>
|
||||
<!-- Suppress logback's internal status messages -->
|
||||
<statusListener class="ch.qos.logback.core.status.NopStatusListener" />
|
||||
|
||||
<!-- Console appender for development/foreground -->
|
||||
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
@@ -34,8 +37,8 @@
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- Log to file only by default (CLI commands). Service foreground mode adds console programmatically -->
|
||||
<root level="${BARN_LOG_LEVEL:-INFO}">
|
||||
<appender-ref ref="CONSOLE"/>
|
||||
<appender-ref ref="FILE"/>
|
||||
</root>
|
||||
</configuration>
|
||||
Reference in new issue
Block a user