Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Broadcast Log Message

TQLEngine allows users to provide facet id on which all the log messages can be broadcast.


To Configure broadcast of message:

Broadcast Log Messages Configuration
<SffLocalConfig>
    <sff.log.broadcast.all>loggerfacet</sff.log.broadcast.all>
    <sff.log.broadcast.message>json</sff.log.broadcast.message>
</SffLocalConfig>

Explanation

  • sff.log.broadcast.<log level name> which defines one or more facet IDs used for log broadcasting. That is:
    •  <sff.log.broadcast.error>[:MyErrorsFacet:]</sff.log.broadcast.error> - This one will broadcast log error messages to [randomized] [:MyErrorsFacet:] fid 
    • <sff.log.broadcast.all>wstest</sff.log.broadcast.all> - This one will log messages to wstest fid.
      You can specify more than one fid as comma-separated list.
    • Known Log levels are
      1. text
      2. trace
      3. debug
      4. info
      5. warn
      6. error
      7. fatal
      8. all
  • sff.log.broadcast.protocol. Default value is “ws,wss”. This is the list of protocols which will be used to select broadcast pipelines. That is, it will *not* broadcast on HTTP connections, for example. When broadcast is enabled, startup will log the list of protocols so you know it was enabled. Obviously, it will *not* print the list of facet IDs used for broadcast.

  • sff.log.broadcast.message. This is log message definition. It may come in different forms:

    • <sff.log.broadcast.message>json<sff.log.broadcast.message> This simplest form allows you to define log message type (e.g. xml or json). Default is xml.

  • Default message will look like this:
  • Broadcast Log Messages Configuration
    <SffLocalConfig>
        <sff.log.broadcast.all>loggerfacet</sff.log.broadcast.all>
        <sff.log.broadcast.message>json</sff.log.broadcast.message>
    </SffLocalConfig>





  • No labels