apiKey | Required | undefined | Your API key, get for free at https://client.saasly.io |
source | Optional | process.env.PROCESS_NAME , process.env.NODE_ENV or undefined | Should be some identifier showing location where app runs. Could be process.env.NODE_ENV or some process name like "api", "cron-runner" |
identifier | Optional | undefined | If log message includes #something the "something" part will be set as identifier. You could setup your IDE to add random string, or can just type in random things while logging. Very useful when need to find exact console.log by error/log message. E.g. console.log('#27014143832 Hello') . Identifier would be 27014143832 |
doTrackLog | Optional | true | If true, will pipe logs from console.log() to saasly |
doTrackError | Optional | true | If true, will pipe logs from console.error() to saasly |
doTrackWarn | Optional | true | If true, will pipe logs from console.warn() to saasly |
doTrackInfo | Optional | true | If true, will pipe logs from console.info() to saasly |
doTrackDebug | Optional | true | If true, will pipe logs from console.debug() to saasly |