Skip to content

Replace active print statements with logging to stdout. - #3

Open
nofeet wants to merge 1 commit into
praekelt:developfrom
nofeet:add-logging
Open

Replace active print statements with logging to stdout.#3
nofeet wants to merge 1 commit into
praekelt:developfrom
nofeet:add-logging

Conversation

@nofeet

@nofeet nofeet commented Mar 17, 2014

Copy link
Copy Markdown

First of all, thanks for your work on this package. It is quite useful.

I'd like to create log files for it, and I think it would be helpful to capture all the messages that are currently output using print statements. So I replaced all the active print statements with logging ones.

I configured them to print to the stdout so that the output looks the same out of the box. But now users have the ability to configure the ESME and SMSC logging by using the logger names smpp.esme and smpp.smsc respectively.

The new logging statements should look the same as print
but with the ability to change the handler and redirect
logging messages elsewhere.
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

Successfully merging this pull request may close these issues.

1 participant