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.