Web App Logging

Lifeboat configures rsyslog to collect the stdout and stderr streams to an instance-specific log file. Below is a quick and easy test that illustrates the different ways to send messages to the Lifeboat log viewer.

// These functions include EndOfLine
Print("Print")
System.DebugLog("System.DebugLog")

// These do not, they are streams
stdout.Write("stdout.Write" + EndOfLine)
stderr.Write("stderr.Write" + EndOfLine)

Will produce:

raspberrypi testoutputs42003[11887]: Print
raspberrypi testoutputs42003[11887]: System.DebugLog
raspberrypi testoutputs42003[11887]: stdout.Write
raspberrypi testoutputs42003[11887]: stderr.Write
raspberrypi testoutputs42003[11887]: Application is ready

Using Print("Message") is a quick and easy way to write debug messages that are easy to find in Lifeboat.