By default, log rotation is enabled for the messages.log and
access.log. New files are created each time the Apache server
is restarted or it exceeds 10MB in size.
By default, the log rotation is enabled to rotate the files once they reach 10MB.
As of v21.5.1, Gateway
generates the Apache configuration file when
container is started. If you require custom Log
Rotation settings, you must include a config.json
file in the
Built-in workspace or in the custom workspace with the following line:
Doing so will let you use your custom Apache configuration for your container.
Tip: If needed, you can add messages directly to Apache server logs. Add
messages using the app.logger object, where app is
imported from main_app. Adding messages in this way is useful in
cases where no user session session is active when a workflow is executed.
For example, to configure log rotation, type the following: