Class Slogger
In: lib/stomp/slogger.rb
examples/examplogger.rb
lib/stomp/slogger.rb
Parent: Stomp::NullLogger

Example STOMP call back logger class.

Optional callback methods:

All methods are optional, at the user‘s requirements.

If a method is not provided, it is not called (of course.)

IMPORTANT NOTE: in general, call back logging methods SHOULD not raise exceptions, otherwise the underlying STOMP connection may fail in mysterious ways.

There are two useful exceptions to this rule for:

These two methods can raise a Stomp::Errors::LoggerConnectionError. If this exception is raised, it is passed up the chain to the caller.

Callback parameters: are a copy of the @parameters instance variable for the Stomp::Connection.

Methods

Public Class methods

Initialize a new callback logger instance.

Initialize a new callback logger instance.

Initialize a new callback logger instance.

Public Instance methods

Log connected events

Log connected events

Log connected events

Log connectfail events

Log connectfail events

Log connectfail events

Log connecting events

Log connecting events

Log connecting events

Log disconnect events

Log disconnect events

Log disconnect events

Stomp 1.1+ - heart beat read (receive) failed.

Stomp 1.1+ - heart beat read (receive) failed.

Stomp 1.1+ - heart beat read (receive) failed.

Stomp 1.1+ - heart beat send (transmit) failed.

Stomp 1.1+ - heart beat send (transmit) failed.

Stomp 1.1+ - heart beat send (transmit) failed.

Log miscellaneous errors

Log miscellaneous errors

Log miscellaneous errors

Log a successful SSL connect.

Log a successful SSL connect.

Log a successful SSL connect.

Log an unsuccessful SSL connect.

Log an unsuccessful SSL connect.

Log an unsuccessful SSL connect.

Log SSL connection start.

Log SSL connection start.

Log SSL connection start.

[Validate]