Documentation ¶ Index ¶ func DefaultLogDir() (string, error) type Entry type Logger func Open(component, dir string) (*Logger, error) func (l *Logger) Close() error func (l *Logger) Log(ctx context.Context, category, direction, action, detail string, seq []byte) func (l *Logger) Write(ctx context.Context, entry Entry) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DefaultLogDir ¶ func DefaultLogDir() (string, error) Types ¶ type Entry ¶ type Entry struct { Timestamp time.Time Component string Category string Direction string Action string Detail string Len int Hex string ASCII string } type Logger ¶ type Logger struct { // contains filtered or unexported fields } func Open ¶ func Open(component, dir string) (*Logger, error) func (*Logger) Close ¶ func (l *Logger) Close() error func (*Logger) Log ¶ func (l *Logger) Log(ctx context.Context, category, direction, action, detail string, seq []byte) func (*Logger) Write ¶ func (l *Logger) Write(ctx context.Context, entry Entry) Source Files ¶ View all Source files log.go Click to show internal directories. Click to hide internal directories.