zynagent-first application framework

Back to the API reference

zyn.Logger#

/// Application logging capability supplied to request roles.
pub const Logger = opaque {
    /// Writes an informational application message.
    pub fn info(self: *const Logger, comptime format: []const u8, args: anytype) void;

    /// Writes a debug application message.
    pub fn debug(self: *const Logger, comptime format: []const u8, args: anytype) void;

    /// Writes a warning application message.
    pub fn warn(self: *const Logger, comptime format: []const u8, args: anytype) void;

    /// Writes an error application message.
    pub fn err(self: *const Logger, comptime format: []const u8, args: anytype) void;

    /// Writes a fatal application message.
    pub fn fatal(self: *const Logger, comptime format: []const u8, args: anytype) void;
};