Documentation ¶
Overview ¶
Package juice provides utility functions for logging.
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 ¶ added in v1.5.2
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.