Sha256: 3c2efedb05b1b1e72c6bf9c20b09d4d15e9e5865dad3bd9e638f3bc19d57dc4c
Contents?: true
Size: 711 Bytes
Versions: 71
Compression:
Stored size: 711 Bytes
Contents
module Celluloid module Logger module_function # Send a debug message def debug(string) Celluloid.logger.debug(string) if Celluloid.logger end # Send a info message def info(string) Celluloid.logger.info(string) if Celluloid.logger end # Send a warning message def warn(string) Celluloid.logger.warn(string) if Celluloid.logger end # Send an error message def error(string) Celluloid.logger.error(string) if Celluloid.logger end # Handle a crash def crash(string, exception) string += "\n#{exception.class}: #{exception.to_s}\n" string << exception.backtrace.join("\n") error(string) end end end
Version data entries
71 entries across 71 versions & 2 rubygems