Closed ferusinfo closed 8 years ago
You should be able to use the logger by accessing Sidekiq.logger
inside your jobs:
class SomeJob < Gush::Job
def work
logger.info "something to log"
end
def logger
Sidekiq.logger
end
end
Works like a charm - would you be so nice and add the logger
property to the Job class itself or should I make a pull request on this?
Sure, I can add it :+1: But for now stick with this workaround until I get the new version out :)
Thanks. Great job, by the way! I've moved from pure Sidekiq to your solution in less than 15 minutes - the only problem I have is the logging and https://github.com/chaps-io/gush/issues/18
Glad to hear it, that was the aim :dancer:
I think that this can be closed.
Hey - is there any way to log some things in jobs/workflow by integrating with Sidekiq logger method? I'd like to save some information while performing the tasks.