logs

package
v3.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogConsumer added in v3.1.0

type LogConsumer struct {
	// contains filtered or unexported fields
}

func NewConsumer added in v3.1.0

func NewConsumer(conn *amqp.Connection, mongo *mongo.Client) (LogConsumer, error)

func (*LogConsumer) Listen added in v3.1.0

func (consumer *LogConsumer) Listen() error

type LogEntry added in v3.1.0

type LogEntry struct {
	ID        string    `bson:"_id,omitempty" json:"id,omitempty"`
	Service   string    `bson:"service" json:"service"`
	Data      string    `bson:"data" json:"data"`
	LogLevel  string    `bson:"log_level" json:"log_level"`
	CreatedAt time.Time `bson:"created_at" json:"created_at"`
	UpdatedAt time.Time `bson:"updated_at" json:"updated_at"`
}

type LogPayload

type LogPayload struct {
	Service  string `json:"service"`
	Data     string `json:"data"`
	LogLevel string `json:"log_level"`
}

type LogPublisher

type LogPublisher struct {
	// contains filtered or unexported fields
}

func (*LogPublisher) LogERROR

func (l *LogPublisher) LogERROR(serviceName, data string)

func (*LogPublisher) LogINFO

func (l *LogPublisher) LogINFO(serviceName, data string)

func (*LogPublisher) LogWARNING

func (l *LogPublisher) LogWARNING(serviceName, data string)

func (*LogPublisher) SetAMQPConnection

func (l *LogPublisher) SetAMQPConnection(connection *amqp.Connection)

func (*LogPublisher) SetLogLevel

func (l *LogPublisher) SetLogLevel(level uint)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL