Lifeboat "View Logs"

@Tim_Parnell , which log(s) are displayed by the “View Logs” button? Is it stderr, to which System.DebugLog messages are written? Thanks.

Hi Julia, thanks for asking!

Lifeboat configures rsyslog to collect the stdout and stderr streams to instance-specific log files. I ran a quick test to confirm these details and to see the different ways to send messages to the log file.

// 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)

Produced:

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

Personally, I prefer the Print("Message") method and I use it all the time.

Update: I have now added a page to the user guide about this :smiley: I consider it one of Lifeboat’s strengths.

2 Likes

Thanks, Tim!

Hi again @Tim_Parnell

Is there a URL or API call I can use to download the log from another app or browser?

Thanks.

Never mind, figured it out myself.