# Serial Flux Python example: Logging control
# Uses the Serial Flux logging API.

import time

print("Starting Serial Flux log...")
SF.startLogging()

# Run the test or communicate with the target here.
for second in range(10):
    print(f"Logging... {second + 1}/10")
    time.sleep(1)

SF.stopLogging()
print("Logging stopped.")
