Documentation ¶
Index ¶
- Constants
- type DatadogIngestClient
- type Logger
- func (txLogger *Logger) Debug(event_type string, message string, extraFields *map[string]interface{})
- func (txLogger *Logger) Error(event_type string, message string, extraFields *map[string]interface{})
- func (txLogger *Logger) Fatal(event_type string, message string, extraFields *map[string]interface{})
- func (txLogger *Logger) Info(event_type string, message string, extraFields *map[string]interface{})
- func (txLogger *Logger) Warn(event_type string, message string, extraFields *map[string]interface{})
- type LoggerOptions
Constants ¶
View Source
const DATADOG_INGEST_URL = "https://http-intake.logs.datadoghq.eu/api/v2/logs"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatadogIngestClient ¶ added in v1.1.0
type DatadogIngestClient struct {
// contains filtered or unexported fields
}
func (DatadogIngestClient) SendEvent ¶ added in v1.1.0
func (c DatadogIngestClient) SendEvent(eventDetails map[string]interface{}) error
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func CreateDevelopmentLogger ¶
func CreateLogger ¶
func CreateLogger(opts *LoggerOptions) (*Logger, error)
func CreateProductionLogger ¶
Click to show internal directories.
Click to hide internal directories.