http://compresscafe.i2p/blog/applying_the_diagnostics_pattern_in_practice.html
.*; } } ; I want to share a more general and convenient implementation of this pattern I am writing for a
work-in-progress multimedia library: /// A single diagnostic message. pub const Diagnostic = struct { pub const Component = enum { component_a,
component_b, // .... } ; /// The severity of the failure. level : std.log.Level , /// The component this failure occurred in. component : Component , /// A human-readable description of the failure. message : std.BoundedArray ( u8 , 512...