Answered by:
where is error log folder path to see error message ?

Question
-
User-535616387 posted
Hi Guys,
i will disable error message in my site, after disabled i can't see the error message.
my question : where is error log folder path to see this error ?
thankyou.
best regards.
wibowo wiwitMonday, December 17, 2018 4:01 AM
Answers
-
User753101303 posted
Hi,
By default exception messages should be written to the Windows event log.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, December 17, 2018 8:28 AM -
User-893317190 posted
Hi wibowowiwit,
As PatriceSc , you could see your error log in Windows event log.
Please right click your computer , click Manage,in Event viewer choose windows logs, click Applicaiton, if your application meets error, there should be warning.
You could also use library to help you log errors , for example log4net.
https://stackify.com/log4net-guide-dotnet-logging/
You could log your error to specified folder with log4net,in the Application_error event of Global.asax.
The event will trigger when your application meets error.
protected void Application_Error(object sender, EventArgs e) { Exception ex = Server.GetLastError();//get the last error //here use log4net to log error Server.ClearError();//clear the error }
Best regards,
Ackerly Xu
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, December 18, 2018 3:28 AM
All replies
-
User753101303 posted
Hi,
By default exception messages should be written to the Windows event log.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, December 17, 2018 8:28 AM -
User-893317190 posted
Hi wibowowiwit,
As PatriceSc , you could see your error log in Windows event log.
Please right click your computer , click Manage,in Event viewer choose windows logs, click Applicaiton, if your application meets error, there should be warning.
You could also use library to help you log errors , for example log4net.
https://stackify.com/log4net-guide-dotnet-logging/
You could log your error to specified folder with log4net,in the Application_error event of Global.asax.
The event will trigger when your application meets error.
protected void Application_Error(object sender, EventArgs e) { Exception ex = Server.GetLastError();//get the last error //here use log4net to log error Server.ClearError();//clear the error }
Best regards,
Ackerly Xu
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, December 18, 2018 3:28 AM