mirror of
https://github.com/gechandesu/syslog.git
synced 2026-01-23 15:24:14 +03:00
19 lines
317 B
Markdown
19 lines
317 B
Markdown
# Write Messages into System Journal
|
|
|
|
`syslog` module is a thin wrapper around syslog C API. Read the
|
|
[syslog(3)](https://www.man7.org/linux/man-pages/man3/syslog.3.html)
|
|
manual page for details.
|
|
|
|
Basic usage:
|
|
|
|
```v
|
|
import syslog
|
|
|
|
mut log := syslog.open()
|
|
defer {
|
|
log.close()
|
|
}
|
|
|
|
log.send(.info, 'Hello, World!')
|
|
```
|