This repository (and library) have been deprecated and will no longer receive updates or maintenance. This functionality has been relocated to the hms-networks/sc-ewon-flexy-extensions-lib repository.
THE CODE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. HMS DOES NOT WARRANT THAT THE FUNCTIONS OF THE CODE WILL MEET YOUR REQUIREMENTS, OR THAT THE OPERATION OF THE CODE WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT DEFECTS IN IT CAN BE CORRECTED.
Logging library to enable runtime configurable log output in an Ewon Flexy Java application.
There are seven levels of configurable log level. The logging level is set by the SET_LOG_LEVEL(int) method. Each log level includes the output for the log levels below it (lower numerical value). For example, log level 3 (Warning) includes the output for log level 2 (Serious) and log Level 1 (Critical). All log levels print to the Flexy realtime logs. Negative logging levels write to text files in the /usr directory of the Flexy instead of the realtime log. These text files are named logN.txt where N is an integer.
LoggingLevel | Description |
---|---|
6, -6 (Trace) | Exception stack traces |
5, -5 (Debug) | Low level information about the state of the application |
4, -4 (Info) | General Application state information |
3, -3 (Warning) | Issues encountered in the application that are not serious |
2, -2 (Serious) | Serious application log messages (Errors) |
1, -1 (Critical) | Critical application log messages (Startup, Initialization, Unrecoverable Error) |
0 (None) | Logging is disabled |
This library supports outputting log information over a raw socket connection on port 766.
Netcat Example: Connect to a Flexy with IP address 10.0.0.53
nc 10.0.0.53 766
Note: Socket logging must be enabled using ENABLE_SOCKET_LOG() method.
Developer documentation is available in Javadoc format found in the release package https://github.com/hms-networks/sc-flexy-logger-lib/releases.
None