Socket
Book a DemoInstallSign in
Socket

opscode-mixlib-log

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opscode-mixlib-log

1.0.3
bundlerRubygems
Version published
Maintainers
2
Created
Source

== Mixlib::Log

Mixlib::Log provides a mixin for enabling a class based logger object, a-la Merb, Chef, and Nanite. To use it:

require 'mixlib/log'

class Log
	extend Mixlib::Log
end

You can then do:

Log.debug("foo")
Log.info("bar")
Log.warn("baz")
Log.error("baz")
Log.fatal("wewt")

By default, Mixlib::Logger logs to STDOUT. To alter this, you should call Log.init, passing any arguments to the standard Ruby Logger. For example:

Log.init("/tmp/logfile")    # log to /tmp/logfile
Log.init("/tmp/logfile", 7) # log to /tmp/logfile, rotate every day

Enjoy!

FAQs

Package last updated on 10 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.