Python Streamer: Basic Logging

This is the core method and api for the event streamer. This is an asynchronous method that pushes your data to a queue that handles sending it off to Initial State's servers. You don't have to worry about anything but calling the method where you want! For the sake of clarity (for those new to python or programming) the Streamer would be replaced with the variable reference to a Streamer instance.

Streamer.log(key, value[, epoch])

The log method expects two parameters, key and value:

  • key is a string that represents the source of the value and is limited to 250 characters
  • value is either a string, boolean, or number and it represents a value at the time of the method call.
  • epoch is an optional parameter to override the epoch timestamp, recommended for advanced uses.

Feedback and Knowledge Base