Log4net logging

The PowerServer Web APIs adopts the Log4net logging framework for logging. The PowerServer log files are stored in the Web API bin folder (make sure you have permissions to write into the folder), for example, \ServerAPIs\bin\Debug\net6.0\log. The ServerAPIs project > Logging > log4net.xml file controls which folder under \bin\Debug\net6.0\log to save the log files in and the log file name. For example:

<file value="Logging/logs/powerserver.log" />
//The log file will be rolled based on a size constraint (maximumFileSize)
<maximumFileSize value="100KB" />