Files
herolib/examples/core/logger/logger.vsh
2025-10-12 12:30:19 +03:00

18 lines
349 B
GLSL
Executable File

#!/usr/bin/env -S v -n -w -gc none -cc tcc -d use_openssl -enable-globals run
import incubaid.herolib.core.logger
mut l := logger.new(path: '/tmp/vlogs')!
l.log(
cat: 'system'
log: 'System started successfully'
logtype: .stdout
)!
l.log(
cat: 'system'
log: 'Failed to connect\nRetrying in 5 seconds...'
logtype: .error
)!