This commit is contained in:
ge
2026-01-03 15:10:39 +03:00
commit 0b5c70550a
8 changed files with 193 additions and 0 deletions

12
examples/log.v Normal file
View File

@@ -0,0 +1,12 @@
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.')
}