Skip to content

Conversation

@reox
Copy link

@reox reox commented Apr 17, 2025

this resolves #37

You can get back to the previous behaviour by enabling the verbose flag in the SimpleICP class or by grabbing the simpleicp log directly, for example:

import logging
# simpleicp is the root logger. The SimpleICP class logs into
# simpleicp.simpleicp
log = logging.getLogger('simpleicp')
log.setLevel(logging.INFO)
# Redirect to any handler you want...
handler = logging.StreamHandler()
# You can use any kind of format you want...
handler.setFormatter(logging.Formatter('%(name)s %(message)s'))
log.addHandler(h)

this resolves pglira#37

You can get back to the previous behaviour by enabling the verbose
flag in the SimpleICP class or by grabbing the simpleicp log
directly, for example:

    import logging
    # simpleicp is the root logger. The SimpleICP class logs into
    # simpleicp.simpleicp
    log = logging.getLogger('simpleicp')
    log.setLevel(logging.INFO)
    # Redirect to any handler you want...
    handler = logging.StreamHandler()
    # You can use any kind of format you want...
    handler.setFormatter(logging.Formatter('%(name)s %(message)s'))
    log.addHandler(h)
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.

Verbose option choice

1 participant