logger

package
v0.0.0-...-ec59de8 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 2 Imported by: 0

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

func LogErrorWithKafkaMessage(err error, workerName string, msg kafka.Message, resMessage string)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳