TbSync Event Log

The TbSync event log can be used by any provider to log messages which could be important for the user.

eventlog.add(type, eventInfo, message, details)

Adds an entry to the TbSync event log

  • type (StatusDataType) – One of the types defined in StatusData()
  • eventInfo (EventLogInfo) – EventLogInfo for this event.
  • message (string) – The event message.
  • details (string) – Optional The event details.

Example usage:

let eventInfo = new TbSync.EventLogInfo();
TbSync.eventlog.add(TbSync.StatusData.WARNING, eventInfo, "Something bad happend!");

Instead of creating a custom EventLogInfo() instance, you can also get one with prefilled information via