Create a buffer for logging

A buffer will be used to keep the trace info before sending them
to Scribe. So instead of print we will use snprint.
Send the first data - only time
Add delta
Finish write_event. Next step implement types
Start implementing types functions
Fix wrong type in integer
Create a file for every type
Send traces to scribe properly