Skip to content

Server log

The AyaNova server records important events in the file log-ayanova.txt, for troubleshooting. (Errors in a User's browser are in the web app diagnostic log instead.)

Logins: each login is recorded with the User's name and IP address, Customer Contacts' logins included. Repeated failed logins are recorded with the login name or IP address that reached the limit.

How long it's kept: when the file reaches 1 MB it's moved to a numbered file (log-ayanova-1.txt and so on) and a new one is started. The 9 newest numbered files are kept, so the log holds about 10 MB in all, and the oldest entries are removed as new ones come in.

Authorization Roles required

Editing or viewing this object from within the web app is only available to Users with the following roles:

  • System operations
  • System operations - restricted

How to access the server error log

You can view the log file directly by opening the log file in an editor from the log path location or from within the AyaNova web app where you can view and / or download the log files from any remote location:

The server log form is accessed in the following ways:

Log path

By default AyaNova logs to a logs folder in the location specified by AYANOVA_DATA_PATH setting. To log somewhere else, set AYANOVA_LOG_PATH in config.json, an environment variable or a command line parameter (see Configuration).

Example command line log path parameter

"dotnet run --AYANOVA_LOG_PATH=/home/gztw/Documents/temp/cmdlinelogs"

Log level

AyaNova supports 6 levels of logging, the default level is "Info" which is a medium level and will log general operations and any errors or warnings that may arise.

WARNING AyaNova server performance will be impacted negatively when setting a log level lower than Info. A very large amount of information is logged at Debug or lower levels and each item logged takes time away from the normal server operations. Unless directed to by technical support or attempting to diagnose a specific problem, you should avoid setting a log level lower than "Info" and if you do be sure to set it back the moment you don't need that detail anymore.

Set the log level with AYANOVA_LOG_LEVEL in config.json, an environment variable or a command line parameter (see Configuration), and restart the server.

For example from the command line

"dotnet run --AYANOVA_LOG_LEVEL=Info"

Below are listed the accepted values for log level from highest to lowest. A level logs everything at that level and above. So, for example, "Trace" level will log the most and "Fatal" will log the least.

  • Fatal - Critical errors that prevent AyaNova from running or force it to shut down. This setting results in the least amount of logging.
  • Error - Logs all of the above plus errors that AyaNova can recover from and continue to operate.
  • Warn - Logs all of the above plus issues that AyaNova can work around but should be looked into and are warnings to system operators.
  • Info - Default level. Logs all the above levels plus normal behavior in low level of detail. Basic general operations are logged like startup and shutdown, configuration changes etc.
  • Debug - Logs all the above plus every request to the server in detail and information about internal operations.
  • Trace - Logs all the above plus highest level detail of internal program code operations. Useful primarily to AyaNova technical support to troubleshoot a specific issue, but too detailed for normal purposes.

Reports in the log

To help diagnose report problems, the log has a line at the Info level for each report that:

  • is for 100 or more records
  • takes 10 seconds or more
  • fails, is canceled or runs out of time, whatever its size

Small reports that finish quickly are not logged. So when reports are slow, fail or run out of time, or the server slows down or runs short of memory, these lines show which reports were running, how large they were and how they ended.

For example:

2026-11-22 11:40:14.3367|INFO|ReportBiz::DoRenderJob|Report render finished: report id 1 "Charges Summary Grouped By Customer" (stock), WorkOrder, 564 records, 6.8 s, up to 1 other render running, user: Jane Smith
2026-11-22 14:05:51.2210|INFO|ReportBiz::DoRenderJob|Report render timed out (limit 5 min): report id 14 "Monthly Service Summary" (custom), WorkOrder, 1200 records, 312.4 s, up to 2 other renders running, user: Jane Smith

Each line gives:

  • how the report ended: finished, canceled, failed with the reason, or timed out with the time limit that applied. "failed (report browser closed)" means the program that makes the report stopped on its own, for example because the server ran out of memory.
  • the report template's id and name, and which kind it is:
    • stock: a template that comes with this version of AyaNova, unchanged
    • stock name, changed: has the name of a stock template but not the same content, because it was edited or came with an older version of AyaNova
    • custom: any other template
  • the type and number of records
  • how long the report took, in seconds
  • the most other reports that were being made at the same time
  • the user who ran it

Troubleshooting logging

If you are having issues with logging you can enable a logger diagnostic log with a command line parameter or environment variable. Enabling this setting will cause a log file named "log-ayanova-logger.txt" to be written to the folder AyaNova is started in.

Command line parameter

-- AYANOVA_LOG_ENABLE_LOGGER_DIAGNOSTIC_LOG=true

or set the environment variable

AYANOVA_LOG_ENABLE_LOGGER_DIAGNOSTIC_LOG = true

Warning: this diagnostic log should be disabled as soon as it's not required. Unlike the normal log, this log file is not automatically trimmed so it will grow in size forever and will slow down the server.

Errors that might appear in the log

"Thread pool starvation"

e.g.

2021-12-28 15:07:31.1867|WARN|Microsoft.AspNetCore.Server.Kestrel|As of "12/28/2021 23:07:20 +00:00", the heartbeat has been running for "00:00:01.3469381" which is longer than "00:00:01". This could be caused by thread pool starvation.

Typically under heavy reporting load but could occur in other circumstances, this error means the CPU on the server is overworked. Intermittently this is ok but regularly it is not and indicates a need to increase CPU resources.