Skip to content

Debug Logging

Helge Heß edited this page May 31, 2020 · 2 revisions

The logging system is controlled using environment variables.

Log Levels

  • trace
  • info
  • debug
  • log
  • warn
  • error

Starting w/ Logging in the Shell

export LOGLEVEL=trace
export LOGLEVEL_AM=trace # account manager
export LOGLEVEL_SM=trace # service manager
export LOGLEVEL_DB=trace # database cache
export LOGLEVEL_E=trace
export LOGLEVEL_MS=trace # messages store
export LOGLEVEL_N=trace  # notifications
export LOGLEVEL_S=trace  # service 
export LOGLEVEL_SQL=log  # SQL emitted
export LOGLEVEL_WS=debug # web socket
export LOGLEVEL_SA=trace # API endpoints
export LOGLEVEL_UC=trace # unread count stuff
cd /Applications/Marzipan.app
./Contents/MacOS/Marzipan 

Reset to defaults

export LOGLEVEL=trace
export LOGLEVEL_AM=warn  # account manager
export LOGLEVEL_SM=warn  # service manager
export LOGLEVEL_DB=warn  # database cache
export LOGLEVEL_E=warn
export LOGLEVEL_MS=warn  # messages store
export LOGLEVEL_N=warn   # notifications
export LOGLEVEL_S=warn   # service 
export LOGLEVEL_SQL=warn # SQL emitted
export LOGLEVEL_WS=warn  # web socket
export LOGLEVEL_SA=warn  # API endpoints
export LOGLEVEL_UC=warn  # unread count stuff