Documentation
¶
Index ¶
Constants ¶
View Source
const StateIdInvalid string = "_invalid"
only state log has one valid id
Variables ¶
View Source
var NoInputData = fmt.Errorf("no input data")
Functions ¶
Types ¶
type MongoOutput ¶
type MongoOutput struct {
// contains filtered or unexported fields
}
func (*MongoOutput) Close ¶
func (out *MongoOutput) Close() error
func (*MongoOutput) Write ¶
func (out *MongoOutput) Write(l *StdLog) error
type Output ¶
func NewMongoOutput ¶
func NewStdoutOutput ¶
func NewStdoutOutput(transformer TransformerFunc) (Output, error)
type RedisListInput ¶
type RedisListInput struct {
// contains filtered or unexported fields
}
RedisListInput data from redis LIST
func (*RedisListInput) Close ¶
func (in *RedisListInput) Close() error
type StdLog ¶
type StdLog struct { AppName string `msgpack:"appname" bson:"appname"` Timestamp int64 `msgpack:"timestamp" bson:"timestamp"` Level string `msgpack:"level" bson:"level"` StateId string `msgpack:"stateid" bson:"stateid"` Caller string `msgpack:"caller" bson:"caller"` Message string `msgpack:"message" bson:"message"` Annotations map[string]interface{} `msgpack:"annotations" bson:"annotations"` }
StandardLog standard log format
- AppName define where log from
- Annotations for struct log or message expand
func DefaultTransformer ¶
func StatLogTransformer ¶
type StdoutOutput ¶
type StdoutOutput struct {
// contains filtered or unexported fields
}
func (*StdoutOutput) Close ¶
func (out *StdoutOutput) Close() error
func (*StdoutOutput) Write ¶
func (out *StdoutOutput) Write(l *StdLog) error
type TransformerFunc ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.