···7474 }
7575 }
76767777- /// Get theme from environment variable or return "default"
7777+ /// Get theme from environment variable or return "oxocarbon-dark"
7878 fn default_theme() -> String {
7979- env::var("SLIDES_THEME").unwrap_or_else(|_| "default".to_string())
7979+ env::var("SLIDES_THEME").unwrap_or_else(|_| "oxocarbon-dark".to_string())
8080 }
81818282 /// Get current system user's name
···11+# Logging
22+33+Lantern uses the `tracing` framework for internal logging and diagnostics. By default, logging is disabled, but can be enabled via environment variables for debugging and troubleshooting.
44+55+## Configuration
66+77+### File Path
88+99+To enable logging to a file, set the `LANTERN_LOG_FILE` environment variable:
1010+1111+```bash
1212+export LANTERN_LOG_FILE=/path/to/lantern.log
1313+lantern present slides.md
1414+```
1515+1616+If `LANTERN_LOG_FILE` is not set, logs are discarded and won't appear anywhere.
1717+1818+### Level
1919+2020+Control the verbosity of logs using the `--log-level` flag:
2121+2222+```bash
2323+LANTERN_LOG_FILE=debug.log lantern --log-level debug present slides.md
2424+```
2525+2626+## Usage Examples
2727+2828+### Basic Debugging
2929+3030+Enable info-level logging for general troubleshooting:
3131+3232+```bash
3333+LANTERN_LOG_FILE=lantern.log lantern present slides.md
3434+```
3535+3636+### Detailed Diagnostics
3737+3838+Enable trace-level logging for in-depth debugging:
3939+4040+```bash
4141+LANTERN_LOG_FILE=lantern-trace.log lantern --log-level trace present slides.md
4242+```
4343+4444+### Temporary Log File
4545+4646+Use a temporary file that gets cleaned up automatically:
4747+4848+```bash
4949+LANTERN_LOG_FILE=/tmp/lantern-$$.log lantern present slides.md
5050+```
5151+5252+## Log Format
5353+5454+Logs are written in plain text format without ANSI color codes, making them easy to read and process with standard tools:
5555+5656+```sh
5757+2025-11-18T10:30:45.123Z INFO lantern_cli: Presenting slides from: slides.md
5858+2025-11-18T10:30:45.234Z INFO lantern_cli: Theme selection: CLI arg=None, frontmatter=oxocarbon-dark, final=oxocarbon-dark
5959+2025-11-18T10:30:45.345Z DEBUG lantern_core::parser: Parsed 15 slides from markdown
6060+```