class Log::InfluxBackend

Defined in:

log-influx_backend.cr

Constant Summary

Log = ::Log.for("log.influx_backend")

Constructors

Instance Method Summary

Constructor Detail

def self.new(token : String, org : String, bucket : String, location : String | URI = "localhost:8086", dispatcher : ::Log::Dispatcher | ::Log::DispatchMode = :async) #

[View source]
def self.new(config : Config, dispatcher : ::Log::Dispatcher | ::Log::DispatchMode = :async) #

[View source]

Instance Method Detail

def client : HTTP::Client #

[View source]
def client=(client : HTTP::Client) #

[View source]
def close : Nil #
Description copied from class Log::Backend

Closes underlying resources used by this backend.


[View source]
def config : Config #

[View source]
def config=(config : Config) #

[View source]
def params(*args, **options) #

[View source]
def params(*args, **options, &) #

[View source]
def write(entry : Entry) #
Description copied from class Log::Backend

Writes the entry to this backend.


[View source]