Logging and Shutdown Activity

Writing to Bridge Log Files

If you are writing messages to log files that will be displayed on the Bridge (start, stdout, stderr, custom logfiles), you must use UTF-8 encoding. If you do not, special characters may be displayed wrongly in the log view.

Implementing a Service Shutdown Activity

Upon stopping a Java service, the Bridge will send an operating system signal (SIGINT) to the service to stop it. If you want to do some clean-up actions before stopping, you have to implement a signal handler for SIGINT in your Java service.
For more information, refer to the Oracle Documentation of addShutdownHook.

📘