dubeaud / bugnet

BugNET is an open source issue tracker built with .NET
189 stars 167 forks source link

Bugnet error log is empty #194

Open vickeybird opened 8 years ago

vickeybird commented 8 years ago

I'm working on my first Bugnet implementation. I encountered errors while testing SMTP configuration which instructed me to view error log for details. However there were no errors reported in the error log page.

I looked into the BugNet_ApplicationLog table in the database and found it empty. Do i have to explicitly enable logging to get it working? Apart from this issue, the application runs fine which means there are no database access issues.

dubeaud commented 8 years ago

There should be no additional configuration to setup the logging but the error you are getting may not be logged. Can you tell me the steps to reproduce?

vickeybird commented 8 years ago

First, a big thanks for your quick response. Here are the steps I took.

  1. Access Mail/SMTP settings via Admin/Application configuration.
  2. Fill in details as shown in the attached screenshot.
  3. Click test button.
  4. The error message appears as shown in the screenshot appear.
  5. Access Logviewer via Admin/Log viewer.
  6. There are no errors

Another intriguing fact is that there are no SMTP configuration settings in web.config as described in few blogs about making email integration work. smtpconfig smtperror logviewer

dubeaud commented 8 years ago

The logging will use the connection string "BugNET" from your web.config, if you changed the name it won't log errors.

comic1976 commented 8 years ago

I have the same problem, Connection string "BugNET" in Web.Config should be correct, because I can Login the Web system(I think it means the connection string is correct)

jacquesmi commented 8 years ago

I have also the same problem with version 1.6.339.0. Error when trying to send test email and no logs in the logs.

Please help!

bikashdasin commented 8 years ago

I have the same problem. Application is not logging any error in version 1.6.339, i have debug the code and found issue , issue is ConfigureAdoNetAppender() method in not able to configure adoAppender, as adoAppender is null , application is not logging any error or info.

wrhighfield commented 8 years ago

Hello,

You can try and add the following to the appSettings section in the web.config

<add key="log4net.Config" value="log4net.config" />

This is one of a couple of ways to make log4net point to a specific file.