Documentation
¶
Overview ¶
Package logger provides functions for custom logging used in the Media Docker project. This package is used to log structured error messages, specifically for Kafka message processing, with detailed metadata.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogErrorWithKafkaMessage ¶
LogErrorWithKafkaMessage logs a standard error message with detailed Kafka message metadata.
Parameters:
- err: The error that occurred during message processing.
- workerName: The name of the worker processing the message.
- msg: The Kafka message being processed, which includes details like topic, partition, offset, etc.
- resMessage: A custom message that describes the error context or result.
func LogUnknownTopic ¶
func LogUnknownTopic(workerName string, msg kafka.Message)
LogUnknownTopic logs a standard error message with detailed Kafka message metadata, typically used when the topic of the Kafka message is unknown or unrecognized.
Parameters:
- workerName: The name of the worker processing the message.
- msg: The Kafka message being processed, which includes details like topic, partition, offset, etc.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.