struct Godot::LogRecord

Overview

Represents a single structured diagnostic log record with optional security / metadata tags

Defined in:

libgodot/logging/record.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(level : LogLevel, channel : String, message : String, file : String = "", line : Int32 = 0, function : String = "", tags : Array(String) = [] of String, status : String = "", timestamp : ::Time = ::Time.local) #

Instance Method Detail

def channel : String #

def confidential? : Bool #

Returns true if this record is marked internal or contains secret/confidential tags or statuses


def file : String #

def function : String #

def has_status? : Bool #

def has_tag?(tag : String) : Bool #

def level : LogLevel #

def line : Int32 #

def message : String #

def public? : Bool #

Returns true if this record is safe for public distribution (marked public or public channel)


def status : String #

def status?(expected : String) : Bool #

def tags : Array(String) #

def timestamp : ::Time #

def to_ansi(include_location : Bool = false) : String #

def to_bbcode(include_location : Bool = true) : String #

def to_formatted_string(include_location : Bool = false) : String #

Format: [2026-09-28 18:56:12.345] [LEVEL] [Channel] {status} <tag1,tag2> Message (file:line)