log

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 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 DataDogLogger

type DataDogLogger struct {
	*clog.CachedLogger
	// contains filtered or unexported fields
}

func NewDataDogLogger

func NewDataDogLogger() *DataDogLogger

NewDataDogLogger - Creates a new instance of the logger.

func (*DataDogLogger) Close

func (c *DataDogLogger) Close(correlationId string) error

Close - Closes component and frees used resources.

  • correlationId (optional) transaction id to trace execution through call chain.
  • Returns error or nil no errors occured.

func (*DataDogLogger) Configure

func (c *DataDogLogger) Configure(config *cconf.ConfigParams)

Сonfigure - Configures component by passing configuration parameters.

  • config configuration parameters to be set.

func (*DataDogLogger) IsOpen

func (c *DataDogLogger) IsOpen() bool

IsOpen - Checks if the component is opened.

Returns true if the component has been opened and false otherwise.

func (*DataDogLogger) Open

func (c *DataDogLogger) Open(correlationId string) error

Open - Opens the component.

  • correlationId (optional) transaction id to trace execution through call chain.
  • Returns error or nil no errors occured.

func (*DataDogLogger) Save

func (c *DataDogLogger) Save(messages []*clog.LogMessage) error

Saves log messages from the cache. - messages a list with log messages - Returns error or nil for success.

func (*DataDogLogger) SetReferences

func (c *DataDogLogger) SetReferences(references cref.IReferences)

SetReferences - Sets references to dependent components.

  • references references to locate the component dependencies.

Jump to

Keyboard shortcuts

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