Documentation ¶ Overview ¶ logging for the purposes of analysis later on. Index ¶ func NewTest(a aws.Auth, bucket string) *test type LogRecord type Logger func NewJSONLogger(runID string, ss3 s3.Interface, bucket string, dir string) Logger type Message type Message2 Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewTest ¶ func NewTest(a aws.Auth, bucket string) *test Types ¶ type LogRecord ¶ type LogRecord struct { Run string Id string Time time.Time Messages []Message } type Logger ¶ type Logger interface { // async logging Add(interface{}) // returns only when log is committed to permanent storage AddSync(interface{}) error Flush() } func NewJSONLogger ¶ func NewJSONLogger(runID string, ss3 s3.Interface, bucket string, dir string) Logger type Message ¶ type Message struct { Time time.Time Id string Payload interface{} } type Message2 ¶ type Message2 struct { Message Type string Reply chan error } Source Files ¶ View all Source files logger.go Click to show internal directories. Click to hide internal directories.