Files
syslog/examples/log.v
2026-01-03 15:10:39 +03:00

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.')
}