Player APIs (BrightScript & Ja...
...
Object Reference
System Objects
roSystemLog
7min
this object enables recording of the system log on a brightsign player note that brightscript print values are not written to the system log; use the ifstreamsend methods to write to the log instead object creation this object is created with no parameters createobject("rosystemlog") ifsystemlog readlog() as roarray returns an array of strings the strings correspond to lines in the system log, spanning from bootup to the most recent entry readnextline() as string reads the next line of the recorded system log ifstreamsend setsendeol(eol sequence as string) as void sets the eol sequence when writing to the stream the default value is cr+lf if you need to set this value to a non printing character, use the chr() global functions docid\ nsjxffr7olfgdwgjfebme sendbyte(byte as integer) as void writes the specified byte to the stream sendline(string as string) as void writes the specified characters to the stream followed by the current eol sequence sendblock(a as dynamic) as void writes the specified characters to the stream this method can support either a string or an robytearray if the block is a string, any null bytes will terminate the block flush() as void writes the stream to the file, blocking execution until all data is written out writing to a remote syslog server brightsign players can write to a remote syslog server using the standard syslog protocol (rfc 3164) to configure remote logging, write the "syslog" entry to the "networking" section of the roregistrysection docid\ ffm73tjd bthw4 p 0jvg example registry = createobject("roregistrysection", "networking") registry write("syslog", "my syslog server") registry flush() you can specify the syslog using either its ip address or hostname