Skip to content

API Reference

Here are some props you can pass to the println function to customise your log outputs

PropDescriptionDefault
helperA string that describes the context of the log message. It helps identify what the logged data represents."" (empty string)
dataThe data you want to log, which can be of any type (e.g., object, array, string).N/A
colorThe color applied to the logged data. Available color options are listed here.reset
showFunctionOriginDetermines whether the logs will show the name of the function and line number where println was called.true

Available Colors

Link to this section

The color prop allows you to customize the color of the log output. Here are the available color options:

Foreground Colors:

Link to this section
  • reset
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white
  • black

Bright Foreground Colors:

Link to this section
  • brightRed
  • brightGreen
  • brightYellow
  • brightBlue
  • brightMagenta
  • brightCyan
  • brightWhite

Background Colors:

Link to this section
  • bgRed
  • bgGreen
  • bgYellow
  • bgBlue
  • bgMagenta
  • bgCyan
  • bgWhite
  • bgBlack

Bright Background Colors:

Link to this section
  • bgBrightRed
  • bgBrightGreen
  • bgBrightYellow
  • bgBrightBlue
  • bgBrightMagenta
  • bgBrightCyan
  • bgBrightWhite

You can use any of these options when passing the color prop to the println function.