Module: Blather

Defined in:
lib/blather/stream/parser.rb,
lib/blather.rb,
lib/blather/jid.rb,
lib/blather/errors.rb,
lib/blather/roster.rb,
lib/blather/stanza.rb,
lib/blather/stream.rb,
lib/blather/stanza/x.rb,
lib/blather/stanza/iq.rb,
lib/blather/xmpp_node.rb,
lib/blather/client/dsl.rb,
lib/blather/roster_item.rb,
lib/blather/stanza/disco.rb,
lib/blather/client/client.rb,
lib/blather/stanza/pubsub.rb,
lib/blather/stream/client.rb,
lib/blather/stanza/message.rb,
lib/blather/stanza/iq/query.rb,
lib/blather/stanza/iq/vcard.rb,
lib/blather/stanza/presence.rb,
lib/blather/stream/features.rb,
lib/blather/stanza/iq/roster.rb,
lib/blather/stream/component.rb,
lib/blather/client/dsl/pubsub.rb,
lib/blather/errors/sasl_error.rb,
lib/blather/stanza/iq/command.rb,
lib/blather/errors/stanza_error.rb,
lib/blather/errors/stream_error.rb,
lib/blather/stanza/pubsub/event.rb,
lib/blather/stanza/pubsub/items.rb,
lib/blather/stanza/pubsub_owner.rb,
lib/blather/stream/features/tls.rb,
lib/blather/stanza/pubsub/create.rb,
lib/blather/stanza/pubsub/errors.rb,
lib/blather/stream/features/sasl.rb,
lib/blather/stanza/pubsub/publish.rb,
lib/blather/stanza/pubsub/retract.rb,
lib/blather/stanza/presence/status.rb,
lib/blather/stanza/disco/disco_info.rb,
lib/blather/stanza/pubsub/subscribe.rb,
lib/blather/stream/features/session.rb,
lib/blather/stanza/disco/disco_items.rb,
lib/blather/stream/features/resource.rb,
lib/blather/stanza/pubsub/unsubscribe.rb,
lib/blather/stanza/pubsub_owner/purge.rb,
lib/blather/stanza/pubsub/affiliations.rb,
lib/blather/stanza/pubsub/subscription.rb,
lib/blather/stanza/pubsub_owner/delete.rb,
lib/blather/stanza/pubsub/subscriptions.rb,
lib/blather/stanza/presence/subscription.rb

Overview

:nodoc:

Defined Under Namespace

Modules: DSL Classes: ArgumentError, BlatherError, Client, JID, ParseError, Roster, RosterItem, SASLError, Stanza, StanzaError, Stream, StreamError, UnknownResponse, XMPPNode

Constant Summary collapse

@@logger =
nil

Class Method Summary collapse

Class Method Details

.loggerObject

Get or create an instance of Logger



71
72
73
74
75
76
77
# File 'lib/blather.rb', line 71

def self.logger
  unless @@logger
    self.logger = Logger.new($stdout)
    self.logger.level = Logger::INFO
  end
  @@logger
end

.logger=(logger) ⇒ Object

Set the Logger



80
81
82
# File 'lib/blather.rb', line 80

def self.logger=(logger)
  @@logger = logger
end