class Analogger::Core::Log
- Analogger::Core::Log
- Reference
- Object
Defined in:
analogger/core/log.crConstant Summary
-
DEFAULT_OPTIONS =
["ab"]
-
DEFAULT_SERVICE =
"default"
-
DEFAULT_TYPE =
"file"
Constructors
Instance Method Summary
-
#==(other)
Returns
false
(other can only be aValue
here). - #cull : Bool | Nil
- #destination : Analogger::Destination | IO | Nil
- #levels : Hash(String, Bool)
- #options : Array(String)
- #raw_destination : String | Nil
- #service : String
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #type : String | Nil
Constructor Detail
def self.new(service = DEFAULT_SERVICE, levels : Hash(String, Bool) = DEFAULT_SEVERITY_LEVELS, raw_destination = Analogger::Core.default_log, destination : Analogger::Destination | IO | Nil = Analogger::Core.default_log_destination, cull = true, type = DEFAULT_TYPE, options = DEFAULT_OPTIONS)
#
Instance Method Detail
def ==(other)
#
Description copied from class Reference
Returns false
(other can only be a Value
here).
def to_s
#
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.