From 1b38462e641ed570738c81d65782580bb2c58bd0 Mon Sep 17 00:00:00 2001 From: synix Date: Sun, 17 Nov 2024 19:55:48 +0800 Subject: [PATCH 1/3] fix break links in start-koin.md --- docs/reference/koin-core/start-koin.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/koin-core/start-koin.md b/docs/reference/koin-core/start-koin.md index c780ddeb8..ea63366bc 100644 --- a/docs/reference/koin-core/start-koin.md +++ b/docs/reference/koin-core/start-koin.md @@ -23,8 +23,8 @@ Once `startKoin` has been called, Koin will read all your modules & definitions. Your Koin container can have several options: -* `logger` - to enable logging - see <> section -* `properties()`, `fileProperties( )` or `environmentProperties( )` to load properties from environment, koin.properties file, extra properties ... - see <> section +* `logger` - to enable logging - see [Logging](#logging) section +* `properties()`, `fileProperties( )` or `environmentProperties( )` to load properties from environment, koin.properties file, extra properties ... - see [Loading properties](#loading-properties) section :::info From b351d7b8b2d8829bedafc5b69bd58ea7d313ede5 Mon Sep 17 00:00:00 2001 From: synix Date: Sun, 17 Nov 2024 20:48:18 +0800 Subject: [PATCH 2/3] update `Logger` class in start-koin.md --- docs/reference/koin-core/start-koin.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/reference/koin-core/start-koin.md b/docs/reference/koin-core/start-koin.md index ea63366bc..04325634a 100644 --- a/docs/reference/koin-core/start-koin.md +++ b/docs/reference/koin-core/start-koin.md @@ -72,7 +72,7 @@ Koin Logger ```kotlin abstract class Logger(var level: Level = Level.INFO) { - abstract fun log(level: Level, msg: MESSAGE) + abstract fun display(level: Level, msg: MESSAGE) fun debug(msg: MESSAGE) { log(Level.DEBUG, msg) @@ -82,6 +82,10 @@ abstract class Logger(var level: Level = Level.INFO) { log(Level.INFO, msg) } + fun warn(msg: MESSAGE) { + log(Level.WARNING, msg) + } + fun error(msg: MESSAGE) { log(Level.ERROR, msg) } From 227a1bb8e4d3f32eb7507bf34b2b73ea9483a61f Mon Sep 17 00:00:00 2001 From: synix Date: Sun, 17 Nov 2024 20:49:51 +0800 Subject: [PATCH 3/3] fix typo in start-koin.md --- docs/reference/koin-core/start-koin.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/koin-core/start-koin.md b/docs/reference/koin-core/start-koin.md index 04325634a..222193d7e 100644 --- a/docs/reference/koin-core/start-koin.md +++ b/docs/reference/koin-core/start-koin.md @@ -101,7 +101,7 @@ Koin proposes some implementation of logging, in function of the target platform ### Set logging at start -By default, By default Koin use the `EmptyLogger`. You can use directly the `PrintLogger` as following: +By default, Koin use the `EmptyLogger`. You can use directly the `PrintLogger` as following: ```kotlin startKoin {