logdestinations

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsoleLogger added in v0.0.3

func NewConsoleLogger() (gologcore.ILogDestination, error)

func NewFileLogger added in v0.0.3

func NewFileLogger(configuration FileLoggerConfiguration) (gologcore.ILogDestination, error)

func NewMongoDBLogger

func NewMongoDBLogger(configuration MongoDBLoggerConfiguration) (gologcore.ILogDestination, error)

func NewRabbitMQLogger added in v0.0.3

func NewRabbitMQLogger(configuration RabbitMQLoggerConfiguration) (gologcore.ILogDestination, error)

Types

type ConsoleLogger added in v0.0.3

type ConsoleLogger struct{}

func (*ConsoleLogger) Close added in v0.0.3

func (consoleLogger *ConsoleLogger) Close() error

func (*ConsoleLogger) Log added in v0.0.3

func (consoleLogger *ConsoleLogger) Log(logModel gologcore.Log) error

type FileLogger added in v0.0.3

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

func (*FileLogger) Close added in v0.0.3

func (fileLogger *FileLogger) Close() error

func (*FileLogger) Log added in v0.0.3

func (fileLogger *FileLogger) Log(logModel gologcore.Log) error

type FileLoggerConfiguration added in v0.0.3

type FileLoggerConfiguration struct {
	FileName string
}

type MongoDBLogger

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

func (*MongoDBLogger) Close

func (mongoDBLogger *MongoDBLogger) Close() error

func (*MongoDBLogger) Log

func (mongoDBLogger *MongoDBLogger) Log(logModel gologcore.Log) error

type MongoDBLoggerConfiguration

type MongoDBLoggerConfiguration struct {
	DbUri      string
	Database   string
	Collection string
}

type RabbitMQLogger

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

func (*RabbitMQLogger) Close

func (rabbitMQLogger *RabbitMQLogger) Close() error

func (*RabbitMQLogger) Log

func (rabbitMQLogger *RabbitMQLogger) Log(logModel gologcore.Log) error

type RabbitMQLoggerConfiguration

type RabbitMQLoggerConfiguration struct {
	Url       string
	QueueName string
}

Jump to

Keyboard shortcuts

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