mirror of
https://github.com/gechandesu/syslog.git
synced 2026-01-23 15:24:14 +03:00
init
This commit is contained in:
18
README.md
Normal file
18
README.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# 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!')
|
||||
```
|
||||
Reference in New Issue
Block a user