Skip to content

Logging

Manos Kouvarakis edited this page Oct 11, 2019 · 5 revisions

Logging

Orka internally uses log4js to log messages and riviere to log http traffic. Both log providers support simple and json formats.

Development

In development environment default log format is set to simple in order to make it easier for debugging.

Staging - Production

On staging and production environments, default log format is json because we push all logs to Google Stackdriver (json provided is fully compatible). In order to make debugging on these environments easier a tool is created to replace stern usage because json strings are difficult to read. This tool internally uses stern to read logs and fx to transform them in a human readable string. In order to install it, just run the following in your terminal:

curl -L  http://wrkbl.ink/prettystern/ | bash
source ~/.bash_profile

After that the only command you need to run is:

pretty_strn <application_name>
Clone this wiki locally