mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 14:43:28 +00:00
Replace std.log with a structured logger
Outputs in logfmt in release and a "pretty" print in debug mode. The format along with the log level will become arguments to the binary at some point in the future.
This commit is contained in:
13
build.zig
13
build.zig
@@ -44,11 +44,14 @@ pub fn build(b: *std.Build) !void {
|
||||
b.option([]const u8, "git_commit", "Current git commit") orelse "dev",
|
||||
);
|
||||
|
||||
opts.addOption(
|
||||
std.log.Level,
|
||||
"log_level",
|
||||
b.option(std.log.Level, "log_level", "The log level") orelse std.log.Level.info,
|
||||
);
|
||||
{
|
||||
const log = @import("src/log.zig");
|
||||
opts.addOption(
|
||||
log.Level,
|
||||
"log_level",
|
||||
b.option(log.Level, "log_level", "The log level") orelse .info,
|
||||
);
|
||||
}
|
||||
|
||||
opts.addOption(
|
||||
bool,
|
||||
|
||||
Reference in New Issue
Block a user