setup_logstash_logging#
API documentation for tradeexecutor.cli.log.setup_logstash_logging Python function.
- setup_logstash_logging(logstash_server, application_name, extra_tags=None, quiet=True, level=20, port=5959)[source]#
Setup Logstash logger.
Connects via UDP.
- Parameters:
logstash_server (str) – Host name / IP address of a logstash server
port – Logstash receiving UDP port
application_name (str) –
Added as application tag.
You can look up this application by filtering for application in Logstash.
extra_tags (Optional[List[str]]) – List of extra tags added on on Logstash messages.
quiet – Do we note if we have connected to the server
- Returns:
Logstash logger