diff --git a/documentation/docs/migration/v7.md b/documentation/docs/migration/v7.md index 4f3a845..dc14f2b 100644 --- a/documentation/docs/migration/v7.md +++ b/documentation/docs/migration/v7.md @@ -8,10 +8,20 @@ icon: material/arrow-up-box Some things have become extension functions to provide target specific implementations and overloads: -* `FileLoggerSetup..create` => new import because it is an extension function now:`import com.michaelflisar.lumberjack.loggers.file.create` -* `getAllExistingLogFiles` => new import because it is an extension function now: `import com.michaelflisar.lumberjack.core.getAllExistingLogFiles` -* `Level.priority` => new import because it is an extension function now: `import com.michaelflisar.lumberjack.core.classes.priority` +#### Logger setup classes -I did also fix a typo, namely following: +I do provide platform specific `create` function to make single platform usage easier. On android those do look like following: -* `getLatestLogFiles` => `getLatestLogFile` (also become an extension function btw) \ No newline at end of file +```kotlin +val setup = FileLoggerSetup.Daily.create(context, fileBaseName = "log_daily") +``` + +In MP projects you can simply use the classes themself if you want to. + +#### Functions become extension functions + +To provide platform specific implementations, some functions needed to be converted to extension functions: + +* `getAllExistingLogFiles` (new import: `import com.michaelflisar.lumberjack.core.getAllExistingLogFiles`) +* `Level.priority` (new import: `import com.michaelflisar.lumberjack.core.classes.priority`) +* `getLatestLogFiles` => `getLatestLogFile` (also fixed a typo) \ No newline at end of file diff --git a/documentation/mkdocs.yml b/documentation/mkdocs.yml index c8b9984..d023f16 100644 --- a/documentation/mkdocs.yml +++ b/documentation/mkdocs.yml @@ -127,6 +127,5 @@ nav: - Migration: - Version 7: migration/v7.md - More: - - Migration: other-libraries.md - Other Libraries: other-libraries.md - About Me: me.md