API Reference
Here are some props you can pass to the println function to customise your log outputs
| Prop | Description | Default |
|---|---|---|
helper | A string that describes the context of the log message. It helps identify what the logged data represents. | "" (empty string) |
data | The data you want to log, which can be of any type (e.g., object, array, string). | N/A |
color | The color applied to the logged data. Available color options are listed here. | reset |
showFunctionOrigin | Determines whether the logs will show the name of the function and line number where println was called. | true |
Available Colors
The color prop allows you to customize the color of the log output. Here are the available color options:
Foreground Colors:
resetredgreenyellowbluemagentacyanwhiteblack
Bright Foreground Colors:
brightRedbrightGreenbrightYellowbrightBluebrightMagentabrightCyanbrightWhite
Background Colors:
bgRedbgGreenbgYellowbgBluebgMagentabgCyanbgWhitebgBlack
Bright Background Colors:
bgBrightRedbgBrightGreenbgBrightYellowbgBrightBluebgBrightMagentabgBrightCyanbgBrightWhite
You can use any of these options when passing the color prop to the println function.