method log.setLevel
Changes the threshold of this process (the start-up value comes from --log-level / OXL_LOG).
Example:
use std.obs { log, Level }
fn main() io {
log.setLevel(Level.Error)
print("{log.level() == Level.Error}")
}Output
true
pub(api) static fn setLevel(level: Level) ioSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
level | Level |
Effects
io
Defined in: std/obs/obs.oxl:227