Custom code log output is redirected to the file user_app.log
inside the logs
directory of the installation folder.
The log level is customizable with the log_level
parameter of the user_app
object in your simulation.json
file.
The log file is automatically rolled and archived if its size is greater than 10MB.
There could be a maximum of 10 archived files with name user_app.<n>.gz
, where <n>
is an index between 1 and 10.
Use logging
module to include your own messages integrated with messages from the rest of the application.
import logging
logger = logging.getLogger("user_app")
logger.error("This is an error")