Top Level Namespace

Defined Under Namespace

Modules: ALittleLess Classes: AlittleLess, Array, Dir, Exception, FalseClass, GlobalLogger, Hash, NilClass, Numeric, Object, Pathname, String, TrueClass

Constant Summary collapse

APP_ROOT =
File.expand_path '.'
All =
AlittleLess

Instance Method Summary collapse

Instance Method Details

#logd(*args) ⇒ Object



62
# File 'lib/a_little_less/global_logger.rb', line 62

def logd *args; GlobalLogger.instance.log :debug, 	*args; end

#loge(*args) ⇒ Object



65
# File 'lib/a_little_less/global_logger.rb', line 65

def loge *args; GlobalLogger.instance.log :error, 	*args; end

#logf(*args) ⇒ Object



66
# File 'lib/a_little_less/global_logger.rb', line 66

def logf *args; GlobalLogger.instance.log :fatal, 	*args; end

#logi(*args) ⇒ Object Also known as: log



63
# File 'lib/a_little_less/global_logger.rb', line 63

def logi *args; GlobalLogger.instance.log :info,	*args; end

#logu(*args) ⇒ Object



67
# File 'lib/a_little_less/global_logger.rb', line 67

def logu *args; GlobalLogger.instance.log :unknown, *args; end

#logw(*args) ⇒ Object



64
# File 'lib/a_little_less/global_logger.rb', line 64

def logw *args; GlobalLogger.instance.log :warn, 	*args; end

#run_safeObject



2
3
4
5
6
7
8
# File 'lib/a_little_less/global.rb', line 2

def run_safe
    begin
        yield
    rescue => e
        loge e
    end
end