Logging

40 views
Skip to first unread message

bobbywilson0

unread,
May 6, 2011, 11:26:07 PM5/6/11
to Queue Classic
Hey Ryan and QCers

What do you think about having some logging as part of the QC lib?
Since we can grab logger from the stdlib, and it could totally be
optional writing to standard out by default and to a file by option.

-Bobby

Ryan Smith

unread,
May 7, 2011, 11:36:45 AM5/7/11
to queue_...@googlegroups.com
Absolutely. Somewhere in the code I have:

ENV["LOGING_ENABLED"]

We should use that env var in addition with one that specifies a file location. Or perhaps a configuration object?

Sent from my phone

Noah Zoschke

unread,
May 8, 2011, 9:42:37 PM5/8/11
to queue_...@googlegroups.com
I like the way rest-client handles this: ENV["RESTCLIENT_LOG"] = "stdout" or a path to a file.

-Noah

Ryan Smith

unread,
May 9, 2011, 12:09:35 PM5/9/11
to queue_...@googlegroups.com
Noah, Agreed. I like this convention as well.

Bobby, are you up for implementing this?
Reply all
Reply to author
Forward
0 new messages