struct

ECS::LogEntry::Log::Origin::File

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(pull : JSON::PullParser)
Source
new

Initialize all values as nil

Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

line(new_value : Int64)

A chainable setter for line

Source
line

log.origin.file.line

The line number of the file containing the source code which originated the log event.

Level: Extended Type: Integer Example:

42
Source
line=(line : Int64 | Nil)

log.origin.file.line

The line number of the file containing the source code which originated the log event.

Level: Extended Type: Integer Example:

42
Source
name(new_value : String)

A chainable setter for name

Source
name

log.origin.file.name

The name of the file containing the source code which originated the log event.

Note that this field is not meant to capture the log file. The correct field to capture the log file is log.file.path.

Level: Extended Type: Keyword Example:

Bootstrap.java
Source
name=(name : String | Nil)

log.origin.file.name

The name of the file containing the source code which originated the log event.

Note that this field is not meant to capture the log file. The correct field to capture the log file is log.file.path.

Level: Extended Type: Keyword Example:

Bootstrap.java
Source