Skip to content

Commit

Permalink
docu
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Flisar authored and Michael Flisar committed Nov 19, 2024
1 parent d0c70b6 commit 93c7cd3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions documentation/docs/migration/v7.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ Some things have become extension functions to provide target specific implement

#### Logger setup classes

I do provide platform specific `create` function to make single platform usage easier. On android those do look like following:
I do provide platform specific `create` function to make single platform usage easier. On android those do look like following now:

```kotlin
val setup = FileLoggerSetup.Daily.create(context, fileBaseName = "log_daily")
val setup2 = FileLoggerSetup.FileSize.create(context, maxFileSizeInBytes = 1000 * 10 /* 10 kB */, fileBaseName = "log_size", filesToKeep = 2)
```

In MP projects you can simply use the classes themself if you want to.
Expand All @@ -22,6 +23,8 @@ In MP projects you can simply use the classes themself if you want to.

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`)
* `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)

0 comments on commit 93c7cd3

Please sign in to comment.