Skip to content

Releases: MFlisar/Lumberjack

6.0.3

04 Apr 07:34
Compare
Choose a tag to compare

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

07 Nov 09:06
Compare
Choose a tag to compare

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

6.0.1

03 Nov 08:26
Compare
Choose a tag to compare

Feedback + Notification Module refactored - cleaner and more comprehensive interface

6.0.0

29 Oct 11:38
Compare
Choose a tag to compare

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

24 Oct 19:28
Compare
Choose a tag to compare
  • updated all android dependencies to the latest versions
  • should be gradle 8 compatible now (R8)
  • additonally I updated logback-android + slf4j to the latest versions and added a proguard rule for those libraries which should solve #16 (proguard file)

5.3.0

20 Dec 11:25
Compare
Choose a tag to compare

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: 5.2.9...5.3.0

5.2.9

18 Dec 10:51
Compare
Choose a tag to compare

Viewer shows info logs in a readable color if a dark theme is used

Full Changelog: 5.2.8...5.2.9

5.2.8

07 Dec 11:45
Compare
Choose a tag to compare
  • Viewer supports to provide a custom theme now (provide one without a toolbar!)
  • console tree does not replace all brackets anymore, enable this manually if needed
  • viewer does use the default primary toolbar style now

Full Changelog: 5.2.7...5.2.8

5.2.7

19 Oct 13:44
Compare
Choose a tag to compare

added callstack correction again

5.2.6

19 Oct 13:13
Compare
Choose a tag to compare

Main changes

  • notification module supports android 32+ (solves #14)
  • main log functions are NOT inlined anymore - otherwise its not possible to provide correct line numbers in kotlin => lambdas are stil evaluated lazily of course
  • line numbers are working again correctly

Other changes

  • removed call stack correction
  • remove java module, simple added @JvmStatic to all functions in L class

Full Changelog: 5.2.5...5.2.6