Creates a Log::Metadata::Value that wraps the given Type.
Creates Log::Metadata from the given values.
Returns true if both self and other's raw object are equal.
Returns true if the raw object is equal to other.
Checks that the underlying value is Array(self), and returns its value.
Checks that the underlying value is Array(self), and returns its value.
Checks that the underlying value is Bool, and returns its value.
Checks that the underlying value is Bool, and returns its value.
Checks that the underlying value is Float32, and returns its value.
Checks that the underlying value is Float64, and returns its value.
Checks that the underlying value is Float64, and returns its value.
Checks that the underlying value is Float32, and returns its value.
Checks that the underlying value is Int32, and returns its value.
Checks that the underlying value is Int64, and returns its value.
Checks that the underlying value is Int64, and returns its value.
Checks that the underlying value is Int32, and returns its value.
Checks that the underlying value is Nil, and returns its value.
Checks that the underlying value is String, and returns its value.
Checks that the underlying value is String, and returns its value.
Checks that the underlying value is Time, and returns its value.
Checks that the underlying value is Time, and returns its value.
Checks that the underlying value is UInt32, and returns its value.
Checks that the underlying value is UInt64, and returns its value.
Checks that the underlying value is UInt64, and returns its value.
Checks that the underlying value is UInt32, and returns its value.
Returns a new Log::Metadata::Value instance with the #raw value #cloneed.
Traverses the depth of a structure and returns the value, otherwise raises.
Traverses the depth of a structure and returns the value.
Returns a new Log::Metadata::Value instance with the #raw value #duped.
Appends this struct's name and instance variables names and values to the given IO.
Returns the raw underlying value, a Type.
Returns Log::Metadata::Value as JSON value.
Same as #inspect(io).
Struct
Struct
Value
Object
Object
Object
Creates a Log::Metadata::Value that wraps the given Type.
Creates Log::Metadata from the given values. All keys are converted to String
Returns true if both self and other's raw object are equal.
Returns true if the raw object is equal to other.
Checks that the underlying value is Array(self), and returns its value. Raises otherwise.
Checks that the underlying value is Array(self), and returns its value. Returns nil otherwise.
Checks that the underlying value is Bool, and returns its value. Raises otherwise.
Checks that the underlying value is Bool, and returns its value. Returns nil otherwise.
Checks that the underlying value is Float32, and returns its value. Raises otherwise.
Checks that the underlying value is Float64, and returns its value. Raises otherwise.
Checks that the underlying value is Float64, and returns its value. Returns nil otherwise.
Checks that the underlying value is Float32, and returns its value. Returns nil otherwise.
Checks that the underlying value is Int32, and returns its value. Raises otherwise.
Checks that the underlying value is Int64, and returns its value. Raises otherwise.
Checks that the underlying value is Int64, and returns its value. Returns nil otherwise.
Checks that the underlying value is Int32, and returns its value. Returns nil otherwise.
Checks that the underlying value is String, and returns its value. Raises otherwise.
Checks that the underlying value is String, and returns its value. Returns nil otherwise.
Checks that the underlying value is Time, and returns its value. Raises otherwise.
Checks that the underlying value is Time, and returns its value. Returns nil otherwise.
Checks that the underlying value is UInt32, and returns its value. Raises otherwise.
Checks that the underlying value is UInt64, and returns its value. Raises otherwise.
Checks that the underlying value is UInt64, and returns its value. Returns nil otherwise.
Checks that the underlying value is UInt32, and returns its value. Returns nil otherwise.
Returns a new Log::Metadata::Value instance with the #raw value #cloneed.
Traverses the depth of a structure and returns the value, otherwise raises.
Traverses the depth of a structure and returns the value. Returns nil if not found.
Returns a new Log::Metadata::Value instance with the #raw value #duped.
Appends this struct's name and instance variables names and values to the given IO.
struct Point def initialize(@x : Int32, @y : Int32) end end p1 = Point.new 1, 2 p1.to_s # "Point(@x=1, @y=2)" p1.inspect # "Point(@x=1, @y=2)"
Returns Log::Metadata::Value as JSON value.
NOTE require "log/json" is required to opt-in to this feature.
Same as #inspect(io).
© 2012–2026 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/1.19.0/Log/Metadata/Value.html