Files
AndroidJetpack/ComposeDebugDrawer/documentation/docs/plugins/lumberjack.md
T
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00

25 lines
949 B
Markdown

---
icon: material/puzzle
---
The `plugin-lumberjack` provides a seemless integration of my [Lumberjack](https://mflisar.github.io/Lumberjack) library.
Add following to the drawer to add a lumberjack region to it.
```kotlin
@Composable
fun DebugDrawerLumberjack(
drawerState: DebugDrawerState,
setup: IFileLoggingSetup,
mailReceiver: String,
image: @Composable (() -> Unit)? = { Icon(Icons.Default.Description, null) },
label: String = "Logging",
id: String = label,
collapsible: Boolean = true,
content: @Composable ColumnScope.() -> Unit = {}
)
```
| Lumberjack Plugin |
|----------------------------------------------------------------------------------------------------------------------|
| ![Device Module](https://raw.githubusercontent.com/MFlisar/ComposeDebugDrawer/refs/heads/main/screenshots/demo5.jpg) |