class Hamilton::LogHandler

Overview

Handler that logs each update.

Included Modules

Defined in:

handlers/log_handler.cr

Constructors

Instance Method Summary

Instance methods inherited from module Hamilton::Handler

call(update : Hamilton::Types::Update) call, call_next(update : Hamilton::Types::Update) : Nil call_next, next : Handler | HandlerProc | Nil next, next=(next __arg0 : Handler | HandlerProc | Nil) next=

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(source : String = "Hamilton::Bot", level : Log::Severity = Log::Severity::Info) #

Instance Method Detail

def call(update : Hamilton::Types::Update) #
Description copied from module Hamilton::Handler

Handling method that processes an update.


def log : Log #

Logger instance.


def log=(log : Log) #

Logger instance.