Sha256: 6fd7ed6f3fc9d7960a6c2f578363e120aa69641047de731d57f879d6d2865367
Contents?: true
Size: 459 Bytes
Versions: 6
Compression:
Stored size: 459 Bytes
Contents
module LoggingLibrary # # Module responsible for instantiating logger objects. # module LoggerFactory module_function # Creates a new `Logger` object. # # @param name [String] An optional parameter for overriding the name of the logger. If not provided, a default will be # determined automatically. def create(name = nil) logger_name = name || caller[0][/`.*'/][1..-2] Logger.new(logger_name) end end end
Version data entries
6 entries across 6 versions & 1 rubygems