Module: SBSM

Defined in:
lib/sbsm.rb,
lib/sbsm/app.rb,
lib/sbsm/user.rb,
lib/sbsm/index.rb,
lib/sbsm/state.rb,
lib/sbsm/logger.rb,
lib/sbsm/turing.rb,
lib/sbsm/session.rb,
lib/sbsm/version.rb,
lib/sbsm/exception.rb,
lib/sbsm/validator.rb,
lib/sbsm/redirector.rb,
lib/sbsm/viralstate.rb,
lib/sbsm/lookandfeel.rb,
lib/sbsm/admin_server.rb,
lib/sbsm/session_store.rb,
lib/sbsm/trans_handler.rb,
lib/sbsm/lookandfeelfactory.rb,
lib/sbsm/lookandfeelwrapper.rb

Overview

State Based Session Management Copyright © 2004 Hannes Wyss

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

ywesee - intellectual capital connected, Winterthurerstrasse 52, CH-8006 Zürich, Switzerland [email protected]

ViralState – sbsm – 16.04.2004 – [email protected] ++

Defined Under Namespace

Modules: Redirector, ViralState Classes: AbstractTransHandler, AdminServer, App, Index, InvalidDataError, KnownUser, Lookandfeel, LookandfeelFactory, LookandfeelWrapper, PStore, ProcessingError, RackInterface, Session, SessionStore, State, TransHandler, UnknownUser, User, Validator, Warning

Constant Summary collapse

VERSION =
'1.5.4'
@@logger =
Logger.new(STDERR)

Class Method Summary collapse

Class Method Details

.debug(msg) ⇒ Object



50
51
52
53
# File 'lib/sbsm/logger.rb', line 50

def self.debug(msg)
  info = "#{File.basename(caller[0])} #{msg}"
  @@logger.debug(info) if @@logger
end

.error(msg) ⇒ Object



42
43
44
45
# File 'lib/sbsm/logger.rb', line 42

def self.error(msg)
  info = "#{File.basename(caller[0])} #{msg}"
  @@logger.error(info) if @@logger
end

.info(msg) ⇒ Object

a simple logger, which makes it easy to compare the timing of the entries by the different process. Should probably later be replaced by a Rack based logger



38
39
40
41
# File 'lib/sbsm/logger.rb', line 38

def self.info(msg)
  info = "#{File.basename(caller[0])} #{msg}"
  @@logger.info(info) if @@logger
end

.loggerObject



33
34
35
# File 'lib/sbsm/logger.rb', line 33

def self.logger
  @@logger
end

.logger=(logger) ⇒ Object



30
31
32
# File 'lib/sbsm/logger.rb', line 30

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

.warn(msg) ⇒ Object



46
47
48
49
# File 'lib/sbsm/logger.rb', line 46

def self.warn(msg)
  info = "#{File.basename(caller[0])} #{msg}"
  @@logger.warn(info) if @@logger
end