doc: update trim_doc_node_description, make module readmes more uniform (#20792)

This commit is contained in:
Turiiya 2024-02-12 17:38:47 +07:00 committed by GitHub
parent e3b64d3278
commit d485cceee8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
59 changed files with 186 additions and 150 deletions

View file

@ -1,16 +1,18 @@
## Description:
## Description
`log` provides your application logging services.
You can log to file or to the console and use different
logging levels, so that you are not overwhelmed by the logs.
## Basic usage:
## Basic usage
The log module creates a default Log instance by default, and
provides utility functions, that you can use to access it.
Note: the default Log instance is thread safe.
That makes it very convenient to use in subsystems, without having
to thread a log instance everywhere:
```v
import log
@ -30,9 +32,11 @@ log.debug('a debug message')
abc()
```
## Advanced usage:
## Advanced usage
You can also create your own log instances, with different options
applied to them:
```v
import log