bluepill-rb / bluepill

simple process monitoring tool
MIT License
416 stars 52 forks source link

Logging from custom process conditions #7

Open dbyron0 opened 10 years ago

dbyron0 commented 10 years ago

I can't seem to figure out how to get access to the Bluepill::Application's logger from within a process condition I'm writing. For example

module Bluepill
  module ProcessConditions
    class MemUsage < ProcessCondition
      def initialize(options = {})
        # Would love a logger method or Bluepill::Application::get_instance method or something here...

Any ideas? Thanks much.

-DB

mdgreenfield commented 10 years ago

:+1: