Log files

When you run an application, the Genero Application Server (GAS) creates log files which may be viewed for troubleshooting.

Important:

Sensitive and personal data may be written to the output. Make sure that the log output is written to files that can only be read by administrators, and review the management strategy for log files.

The following log files are created:
Dispatcher
A log file is generated for each dispatcher. Incoming requests, starting of proxies, responses sent, and system error messages are captured.
Proxy
A separate log file is generated for each proxy started.
DVM
A log file is generated for each DVM started. DVM standard error and standard output are sent to the dedicated DVM log files.

Accessing log files in appdata

The OUTPUT configuration element specifies where the log messages are sent or written. By default they are written to the appdata directory, where appdata refers to GAS application data directory.

You can access log files in the appdata/log/dispatcher_name/date directory.

For example, in a Windows® platform log files are found in the C:\ProgramData\vendor\gas\gas_version\log\dispatcher_name\current_date directory.

Accessing log files from monitor URL

While the dispatcher is running, access the logs from the GAS monitor URL http://appserver:port/monitor. Use the links found in the monitor page to view current dispatcher and proxy logs.

If in development mode, use the link (Get the VM logs) in the application ended page for a Genero Browser Client (GBC) web application to access the VM logs.
Figure: Example GBC application ended page

Application ended page, showing the session id and link to the VM log file.

Log filenames

Dispatcher log
The name specifies the type of dispatcher. Examples:
  • httpdispatch.log
  • isapidispatch.log
  • fastcgidispatch.log
Proxy log
The name indicates the type of proxy. Examples:
  • uaproxy-session-id.log
  • gwsproxy-group-app.log
DVM logs
  • Web applications

    vm-session-id.log

  • Web Services
    When working with web services, a GWS proxy can spawn multiple DVMs. Each DVM gets its own log file. The log file is suffixed with a number from 0 to MAX_AVAILABLE. For example, vm-group-app-number.log
    • vm-demo-Calculator-0.log
    • vm-demo-Calculator-1.log
    Note:

    A log file is reused for new DVM logs if the previous DVM has finished, to avoid the accumulation of log files on disk.

Manage the Genero Application Server log files

The GAS creates a log for each application session. As a result, you can end up with a lot of log files. You should have some plan for archiving and removing log files. For UNIX-based platforms, you can use utilities such as logrotate to compress and move log files. For Windows, any program that can compress and archive log files can be used.

Note:

If using logrotate on Apache web server logs, it will start and stop the Apache server. When Apache restarts, it starts a new fastcgidispatch process while it may not stop the existing process. If you observe this behavior, you can set logrotate's prerotate script to get the pid of the running fastcgidispatch process; it should then be possible to stop the old fastcgidispatch process in the postrotate script.

For more information, see logrotate.

On Unix-like and macOS™ platforms only, you can also redirect GAS logs to the system log by configuring the syslog option in OUTPUT.