Skip to content

Instantly share code, notes, and snippets.

@MFlisar
Last active December 20, 2021 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MFlisar/a40dac3974dfcf846c0a8379ee6ce368 to your computer and use it in GitHub Desktop.
Save MFlisar/a40dac3974dfcf846c0a8379ee6ce368 to your computer and use it in GitHub Desktop.
Lumberjack - Log Example
[MainActivity:2 onCreate]: This is my first log entry (MainActivity.kt:2)
[MainActivity:3 onCreate]: This is my second log entry - it will be logged because logIf evaluates to true (MainActivity.kt:3)
[MainActivity:5 onCreate]: Log line 3 will not slow down this code because the function inside the log will never be called because the logIf evaluates to false (MainActivity.kt:5)
[<TAG1> MainActivity:8 onCreate]: Log with tag (MainActivity.kt:8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment