mirror of
https://github.com/gechandesu/syslog.git
synced 2026-11-15 21:13:53 +03:00
init
This commit is contained in:
commit
0b5c70550a
8 files changed
+193
No files matched your search
@@ -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.')
|
||||
}
|
||||
Reference in new issue
Block a user