Update logging.md

This commit is contained in:
InsanusMokrassar 2023-11-18 18:14:05 +06:00 committed by GitHub
parent bfc7b98482
commit 66d4bdf5e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -7,15 +7,17 @@ As has been said in the [setup](setup.md) section, this library contains next le
| Weight (by order) | LogLevel name | JS | JVM Loggers | Android |
| -: |:-------------:|:-------------:|:-------------:|:-------:|
| 0 | DEBUG | console.log | Level.FINEST | Log.d |
| 1 | VERBOSE | console.info | Level.FINE | Log.v |
| 2 | INFO | console.info | Level.INFO | Log.i |
| 3 | WARNING | console.warn | Level.WARNING | Log.w |
| 4 | ERROR | console.error | Level.SEVERE | Log.e |
| 5 | ASSERT | console.error | Level.SEVERE | Log.wtf |
| 0 | TRACE | console.trace + console.debug | Level.FINEST | Log.d |
| 1 | DEBUG | console.debug | Level.FINER | Log.d |
| 2 | VERBOSE | console.info | Level.FINE | Log.v |
| 3 | INFO | console.info | Level.INFO | Log.i |
| 4 | WARNING | console.warn | Level.WARNING | Log.w |
| 5 | ERROR | console.error | Level.SEVERE | Log.e |
| 6 | ASSERT | console.error | Level.SEVERE | Log.wtf |
Each of these levels have fullname and shortname shortcat extensions:
* `KSLog.trace`/`KSLog.t`/`KSLog.tS`
* `KSLog.debug`/`KSLog.d`/`KSLog.dS`
* `KSLog.verbose`/`KSLog.v`/`KSLog.vS`
* `KSLog.info`/`KSLog.i`/`KSLog.iS`