Skip to content

feat(logging): allow akka-apps and bbb-web to log to stdout only - #26172

Merged
antobinary merged 1 commit into
bigbluebutton:v4.1.x-developfrom
tibroc:simplify/logback-stdout
Oct 23, 2026
Merged

antobinary merged 1 commit into
bigbluebutton:v4.1.x-developfrom
tibroc:simplify/logback-stdout

Conversation

@tibroc

@tibroc tibroc commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

akka-apps and bbb-web can now log to stdout only, without opening a log file, by setting BBB_LOG_FILE_APPENDER=STDOUT.

Change

  • In the logback.xml of bbb-apps-akka and bbb-web, the second appender of the root logger becomes ${BBB_LOG_FILE_APPENDER:-FILE}.
  • With STDOUT, logback skips the unreferenced FILE appender, opens no log file, and attaches STDOUT only once.
  • Plain logback variable substitution (logback 1.6.3 in both); no janino or <if>.

Package installs

  • The variable is not set anywhere, so it resolves to FILE and both services write their log file as before.
  • Only visible difference: one extra INFO status line at start (see details).

Tested

  • Standalone logback 1.6.3 with the akka file, and both images: unset writes bbb-apps-akka.log / bbb-web.log as before; STDOUT writes no log file and each message appears once on stdout.
  • bbb-web started and answered /bigbluebutton/api.

Question

  • akka-bbb-fsesl has the same FILE appender (src/universal/conf/logback.xml, src/main/resources/logback.xml) and is not changed here. Do you want the same change there?
  • Is BBB_LOG_FILE_APPENDER a good name? LOG_FILE and LOGBACK_* were avoided because Spring Boot's logging system uses them.

Image follow-up: v4.1.x-develop...tibroc:bigbluebutton:images/logback-stdout, which removes the build-time sed that deletes <appender-ref ref="FILE"/> from both files. Images: #26141.

Details
  • At start, logback adds the INFO status line value "FILE" substituted for "${BBB_LOG_FILE_APPENDER:-FILE}". It shows only because both files already trigger a status dump (the existing "layout instead of encoder" WARNs).
  • With STDOUT there is also an extra "Appender named [FILE] not referenced" line.

The second appender of the root logger is now ${BBB_LOG_FILE_APPENDER:-FILE}.
Unset, both keep writing their log file as before. Set to STDOUT, logback skips
the unreferenced FILE appender and no log file is opened, e.g. in a container.
@coderabbitai

coderabbitai Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review: 4
  • v3.0.x-release
  • v3.0.x-develop
  • v4.0.x-release
  • v4.0.x-develop

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 401ddc05-793c-4365-b752-8229af949af4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

🚨 Automated tests failed

@imdt-claudiop

Copy link
Copy Markdown
Contributor

Checked both files and their runtime paths: the ${BBB_LOG_FILE_APPENDER:-FILE} default resolves through logback's variable lookup (local, then system properties, then OS environment), so an unset variable is byte-identical to today and package installs keep writing their log files. A wrong value degrades gracefully: the first appender-ref (STDOUT) still attaches and logback reports the unknown appender in its status output instead of failing startup. Grails loads grails-app/conf/logback.xml from the classpath in the packaged service, so the change is effective in production for bbb-web as well.

@tibroc

tibroc commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks for checking the lookup order and the fallback, and that Grails picks up the classpath logback.xml in the packaged service.

@antobinary antobinary added this to the Release 4.1 milestone Oct 23, 2026
@antobinary
antobinary merged commit cc4fed1 into bigbluebutton:v4.1.x-develop Oct 23, 2026
73 of 78 checks passed
@tibroc
tibroc deleted the simplify/logback-stdout branch November 26, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants