class K8sSyslog::Syslog

Overview

Implements https://datatracker.ietf.org/doc/html/rfc5424

Direct Known Subclasses

Defined in:

k8s-syslog/syslog.cr

Constant Summary

SEVERITES = {emergency: 0, alert: 1, critical: 2, error: 3, warning: 4, notice: 5, info: 6, debug: 7}

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(io : IO) #

[View source]

Class Method Detail

def self.line(pod, container, message, ts = Time.utc, severity = :info) : String #

[View source]

Instance Method Detail

def print(line : String) : Nil #

[View source]