Documentation ¶
Index ¶
- type DataDogLogger
- func (c *DataDogLogger) Close(correlationId string) error
- func (c *DataDogLogger) Configure(config *cconf.ConfigParams)
- func (c *DataDogLogger) IsOpen() bool
- func (c *DataDogLogger) Open(correlationId string) error
- func (c *DataDogLogger) Save(messages []*clog.LogMessage) error
- func (c *DataDogLogger) SetReferences(references cref.IReferences)
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.
Click to show internal directories.
Click to hide internal directories.