Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging from custom process conditions #7

Open
dbyron0 opened this issue Feb 25, 2014 · 1 comment
Open

Logging from custom process conditions #7

dbyron0 opened this issue Feb 25, 2014 · 1 comment

Comments

@dbyron0
Copy link

dbyron0 commented Feb 25, 2014

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
Copy link
Contributor

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants