struct
Godot::LogRecord
- Godot::LogRecord
- Struct
- Value
- Object
Overview
Represents a single structured diagnostic log record with optional security / metadata tags
Defined in:
libgodot/logging/record.crConstructors
Instance Method Summary
- #channel : String
-
#confidential? : Bool
Returns true if this record is marked internal or contains secret/confidential tags or statuses
- #file : String
- #function : String
- #has_status? : Bool
- #has_tag?(tag : String) : Bool
- #level : LogLevel
- #line : Int32
- #message : String
-
#public? : Bool
Returns true if this record is safe for public distribution (marked public or public channel)
- #status : String
- #status?(expected : String) : Bool
- #tags : Array(String)
- #timestamp : ::Time
- #to_ansi(include_location : Bool = false) : String
- #to_bbcode(include_location : Bool = true) : String
-
#to_formatted_string(include_location : Bool = false) : String
Format: [2026-09-28 18:56:12.345] [LEVEL] [Channel] {status} <tag1,tag2> Message (file:line)
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 confidential? : Bool
#
Returns true if this record is marked internal or contains secret/confidential tags or statuses
def public? : Bool
#
Returns true if this record is safe for public distribution (marked public or public channel)