Distributed Logger includes several examples in <path to examples1See Paths Mentioned in Documentation.>/distributed_logger:
This is a simple example of how to use the API directly and does not publish or subscribe to any Topics except the ones related to Distributed Logger.
This is a simple example of how to use the API directly and does not publish or subscribe any Topics except the ones related to Distributed Logger.
This is a simple example of how to use the API directly and does not publish or subscribe any Topics except the ones related to Distributed Logger.
This example shows how an application can use the information provided by Distributed Logger. As the name suggests, this example subscribes to log messages and writes them to a file. Multiple DDS domains can be subscribed to simultaneously if desired. The example is meant to strike a balance between simplicity and function. Certainly more features could be added to make it a production-ready application but that would obscure the goal of the example.
This is an adaptation of the Hello_idl example which replaces all System.{out/err} invocations with Java logging library equivalents. It adds Distributed Logger through a configuration file.
This is an adaptation of the Hello_idl example which replaces all System.{out/err} invocations with log4j library equivalents. It adds Distributed Logger through a configuration file.
Each example has a READ_ME.txt file which explains how to build and run it.
© 2020 RTI