Skip to content

Conversation

@bplatz
Copy link
Contributor

@bplatz bplatz commented Oct 9, 2025

Summary

Adds LOG_LEVEL environment variable support to logback configuration files for runtime log level control.

Changes

  • Added LOG_LEVEL property with INFO default fallback
  • Applied to all logger levels (root, fluree.server, fluree.db, fluree.db.consensus, fluree.db.messaging)
  • Updated both dev/logback.xml and resources/logback.xml

Usage

# Set log level via environment variable
export LOG_LEVEL=DEBUG
java -jar target/server-*.jar

# Or inline
LOG_LEVEL=TRACE java -jar target/server-*.jar

Valid levels: TRACE, DEBUG, INFO, WARN, ERROR

Backward Compatibility

✅ Defaults to INFO if LOG_LEVEL not set - no behavior change for existing deployments

@bplatz bplatz requested a review from a team October 9, 2025 17:48
Copy link
Contributor

@zonotope zonotope left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗝️

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