logjuice

package
v1.12.23 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 2 Imported by: 3

Documentation

Overview

Description: This package provides a simple way to log messages with structured data in JSON format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetComponent

func GetComponent() string

GetComponent returns details about the caller function, including the function name and line number.

This information is used to populate the component field of a log entry when concise caller information is sufficient.

If the caller's details cannot be retrieved, it returns a string indicating that the caller information could not be obtained.

func GetComponentWithFile

func GetComponentWithFile() string

GetComponentWithFile returns details about the caller function, including the function name, file name, and line number.

This information is used to populate the component field of a log entry when detailed caller information is required.

If the caller's details cannot be retrieved, it returns a string indicating that the caller information could not be obtained.

Types

This section is empty.

Jump to

Keyboard shortcuts

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