class Log::InfluxBackend
- Log::InfluxBackend
- Log::Backend
- Reference
- Object
Defined in:
log-influx_backend.crConstant Summary
-
Log =
::Log.for("log.influx_backend")
Constructors
- .new(token : String, org : String, bucket : String, location : String | URI = "localhost:8086", dispatcher : ::Log::Dispatcher | ::Log::DispatchMode = :async)
- .new(config : Config, dispatcher : ::Log::Dispatcher | ::Log::DispatchMode = :async)
Instance Method Summary
- #client : HTTP::Client
- #client=(client : HTTP::Client)
-
#close : Nil
Closes underlying resources used by this backend.
- #config : Config
- #config=(config : Config)
- #params(*args, **options)
- #params(*args, **options, &)
-
#write(entry : Entry)
Writes the entry to this backend.
Constructor Detail
def self.new(token : String, org : String, bucket : String, location : String | URI = "localhost:8086", dispatcher : ::Log::Dispatcher | ::Log::DispatchMode = :async)
#
Instance Method Detail
Description copied from class Log::Backend
Closes underlying resources used by this backend.
def write(entry : Entry)
#
Description copied from class Log::Backend
Writes the entry to this backend.