Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix break links in start-koin.md #2057

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions docs/reference/koin-core/start-koin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<logging.adoc#_logging,logging>> section
* `properties()`, `fileProperties( )` or `environmentProperties( )` to load properties from environment, koin.properties file, extra properties ... - see <<properties.adoc#_lproperties,properties>> 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
Expand Down Expand Up @@ -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)
Expand All @@ -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)
}
Expand All @@ -97,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 {
Expand Down