A python module to simplify the process of getting log data to Initial State's platform
Start Streaming! Review or copy the following example:
import time
from ISStreamer.Streamer import Streamer
logger = Streamer(bucket="Stream Example", client_key="[Place Your Client Key Here]")
logger.log("My Messages", "Stream Starting")
for num in range(1, 20):
time.sleep(0.1)
logger.log("My Numbers", num)
if num%2 == 0:
logger.log("My Booleans", "false")
else:
logger.log("My Booleans", "true")
if num%3 == 0:
logger.log("My Events", "pop")
if num%10 == 0:
logger.log("My Messages", "Stream Half Done")
logger.log("My Messages", "Stream Done")
In this example, the logs will show up in Initial State under the name "Stream Example".
|