Skip to main content

No project description provided

Project description

Helpers for the ELM framework scripts

Logging

Here's a sample logging for production:

[loggers]
keys=root,Rx,rawsocket

[handlers]
keys=consoleHandler,fileHandler,socketFileHandler

[formatters]
keys=fileFormatter,consoleFormatter,socketFileFormatter

[logger_root]
level=DEBUG
handlers=consoleHandler,fileHandler

[logger_Rx]
level=INFO
handlers=consoleHandler
qualname=Rx

[logger_rawsocket]
qualname=bittrade_kraken_websocket.connection.generic.raw
handlers=socketFileHandler

[handler_consoleHandler]
class=StreamHandler
level=INFO
formatter=consoleFormatter
args=(sys.stdout,)

[handler_fileHandler]
class=FileHandler
level=DEBUG
formatter=fileFormatter
args=('logfile.log',)

[handler_socketFileHandler]
class=FileHandler
level=DEBUG
formatter=socketFileFormatter
args=('raw_socket.log',)

[formatter_fileFormatter]
format=%(asctime)s   - %(name)s - %(levelname)s - %(message)s
datefmt=%H:%M:%S

[formatter_socketFileFormatter]
format=%(asctime)s - %(message)s
datefmt=%H:%M:%S

[formatter_consoleFormatter]
format=%(asctime)s   - %(levelname)s - %(message)s
datefmt=%H:%M:%S

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elm_framework_helpers-0.1.1.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

elm_framework_helpers-0.1.1-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page