Brightsign Object Reference Manual (FW 5.1) Instrukcja Użytkownika Strona 308

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 341
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 307
300
roSystemLog
This object enables the application to receive events that are intended for reporting errors and trends, rather than for
triggering a response to a user action.
roSystemLog requires specific design patterns in your BrightScript application:
Use one roMessagePort throughout the application (instead of creating a new roMessagePort for each screen).
Create one roSystemLog instance at startup that remains for the entire lifetime of the application.
Pass the global roMessagePort mentioned above to SetMessagePort() on the roSystemLog component.
Enable the desired log types using EnableType().
This object is created with no parameters:
CreateObject("roSystemLog")
Interfaces: ifStreamSend, ifSystemLog
The ifStreamSend interface provides the following:
SetSendEol(eol_sequence As String) As Void: Sets the EOL sequence when writing to the stream.
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()
Przeglądanie stron 307
1 2 ... 303 304 305 306 307 308 309 310 311 312 313 ... 340 341

Komentarze do niniejszej Instrukcji

Brak uwag