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

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 | | Weight (by order) | LogLevel name | JS | JVM Loggers | Android |
| -: |:-------------:|:-------------:|:-------------:|:-------:| | -: |:-------------:|:-------------:|:-------------:|:-------:|
| 0 | DEBUG | console.log | Level.FINEST | Log.d | | 0 | TRACE | console.trace + console.debug | Level.FINEST | Log.d |
| 1 | VERBOSE | console.info | Level.FINE | Log.v | | 1 | DEBUG | console.debug | Level.FINER | Log.d |
| 2 | INFO | console.info | Level.INFO | Log.i | | 2 | VERBOSE | console.info | Level.FINE | Log.v |
| 3 | WARNING | console.warn | Level.WARNING | Log.w | | 3 | INFO | console.info | Level.INFO | Log.i |
| 4 | ERROR | console.error | Level.SEVERE | Log.e | | 4 | WARNING | console.warn | Level.WARNING | Log.w |
| 5 | ASSERT | console.error | Level.SEVERE | Log.wtf | | 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: Each of these levels have fullname and shortname shortcat extensions:
* `KSLog.trace`/`KSLog.t`/`KSLog.tS`
* `KSLog.debug`/`KSLog.d`/`KSLog.dS` * `KSLog.debug`/`KSLog.d`/`KSLog.dS`
* `KSLog.verbose`/`KSLog.v`/`KSLog.vS` * `KSLog.verbose`/`KSLog.v`/`KSLog.vS`
* `KSLog.info`/`KSLog.i`/`KSLog.iS` * `KSLog.info`/`KSLog.i`/`KSLog.iS`