-
Notifications
You must be signed in to change notification settings - Fork 1
Server Error handling and Logging
damiancosmoschapman edited this page Oct 5, 2021
·
1 revision
Home / Developer / Server Tier / Error handling and Logging
Server Error handling and Logging with **log4Net **description.
PDF-API uses the Apache log4Net framework for logging events. Details at https://logging.apache.org/log4net/ . The framework has its own config file at Resources/log4Net.config. Log4Net will log a variety of events depending on the particular configuration set. Please refer to log4net documentation for details.
Specific error messages to be returned to the API are defined in Resources/Error.cs. Precise error details are not returned to the API for reasons of security.
The BaseTemplate classes each have a try,catch,finally structure. All errors thrown within the application are caught here.