MFlisar Lumberjack Versions Save

Lumberjack - a customisable and extensible file/console logger (with optional Timber support)

6.0.7

4 weeks ago

Compose Viewer allows to enable/disable single scrollable line view

6.0.6

1 month ago

Added a clear icon to the compose viewer activity Compose Version: 2024.04.00

6.0.5

1 month ago

bugfix: lumberjack file logger daily setup did not delete the correct files in the last version

6.0.4

1 month ago

updated feedback manager dependency

6.0.3

1 month ago

New Features

  • Compose Viewer shows file sizes now
  • Compose was updatd to 2024.03.00
  • Lumberjack Setups do use Companion.create functions instead of overloaded constructors
  • added a BaseFileLoggerSetup
  • added a new file size based setup to the lumberjack file logger setups: FileLoggerSetup.FileSize.create(...)

Migration

Change FileLoggerSetup.Daily(...) to FileLoggerSetup.Daily.create(...)

6.0.2

6 months ago

feedback dependency updated - sharing files does work differently now and should work reliable

6.0.1

6 months ago

Feedback + Notification Module refactored - cleaner and more comprehensive interface

6.0.0

6 months ago

This new release has quite some changes:

  • it does not depend on Timber anymore (but it still supports it!)
  • everything is modularized now even more than before => the L class still is placed inside the same package BUT all other classes are not
  • the readme tells you everything else you need/want to know

NEW

  • a console/file logger without any dependencies (no timber, no slfj4, no logback-android) => this can save quite some app size...
  • a new compose viewer module

MIGRATION

Normally not much should be needed:

  • Step 1: upgrade your build.gradle - check out the new readme
  • Step 2: at the place where you set up Lumberjack you need to adjust your imports because the console logger, file logger and the extensions have all been moved to their own modules with new package names => simply deleting the imports and let android studio auto import them again should solve that
  • Step 3: replace all import com.michaelflisar.lumberjack.L with import com.michaelflisar.lumberjack.core.L (the core is new)

5.3.1

6 months ago

5.3.0

1 year ago

Added log functions with manual levels:

  • fun log(priority: Int, t: Throwable, message: () -> String)
  • fun log(priority: Int, t: Throwable)
  • fun log(priority: Int, message: () -> String)

Very useful if you want to forward logs from another library inside a custom logger... e.g. like following:

// definition looks like following:
// var logger: ((level: Int, info: String, e: Exception?) -> Unit)? = null
MaterialDialog.logger = { level, info, exception ->
  if (exception != null) {
    L.tag("DIALOG-LOGS").log(level, exception) { info }
  } else {
    L.tag("DIALOG-LOGS").log(level) { info }
  }
}

Full Changelog: https://github.com/MFlisar/Lumberjack/compare/5.2.9...5.3.0