mach: re-export log_level and scope_levels from App

This commit is contained in:
dweiller 2022-06-23 21:05:27 +10:00 committed by Stephen Gutekanst
parent e4cca0127e
commit 1b32552e73
2 changed files with 5 additions and 1 deletions

View file

@ -231,7 +231,8 @@ export fn wasmDeinit() void {
app.deinit(&engine);
}
pub const log_level = .info;
pub const log_level = if (@hasDecl(App, "log_level")) App.log_level else .info;
pub const scope_levels = if (@hasDecl(App, "scope_levels")) App.scope_levels else [0]std.log.ScopeLevel{};
const LogError = error{};
const LogWriter = std.io.Writer(void, LogError, writeLog);