mirror of
https://github.com/gechandesu/syslog.git
synced 2026-01-23 15:24:14 +03:00
13 lines
248 B
V
13 lines
248 B
V
import syslog
|
|
|
|
fn main() {
|
|
mut log := syslog.open(ident: 'helloworld')
|
|
defer {
|
|
log.close()
|
|
}
|
|
log.send(.info, 'hello from V!')
|
|
log.send(.err, 'error message from V!')
|
|
|
|
eprintln('On Linux run `journalctl -t helloworld` to see the result.')
|
|
}
|