Path in log4net.Production.config
ist correct/working (<file value="App_Data/Logs/Logs.txt" />
).
But it doesn't matter as it is not what is being used (log4net.config
is used instead).
The only thing I can see is the following:
~~In the Code above the file is named log4net.Production.config
but actual file name is log4net.production.config
(P vs p).
Could this be the problem?~~ *
EDIT
Hm, when published file name is log4net.Production.config
again (with P).
EDIT
* I was wrong about this: actual file name is log4net.Production.config
, I confused it with appsettings.production.config
....
In my production environment I just changed log4net.config
from
<file value="../../../App_Data/Logs/Logs.txt" />
to
<file value="App_Data/Logs/Logs.txt" />
and recycled the application pool on IIS.
Now logging is working as expected again.
I think production environment should use log4net.Production.config
, right?
10.2.0, Angular
Please, also see log4net stopped generating the logs.
I think there is an issue with logging configuration!? Since ASPNETZERO 10.0.0 logging stopped to work in debug environment but was still working in production environment. Since ASPNETZERO 10.2.0 logging is working in debug environment but stopped to work in production environment.
ASPNETZERO-Team, please confirm if there is a problem.
With ASPNETZERO 10.2.0 the path has been changed back and log files can be found in:
<root>\src\CompanyName.ProjectName.Web.Host\App_Data\Logs
Oh, wow, I totally overlooked that ...
Thank you so much @ismcagdas!
Hi @ibtikar!
As @ismcagdas already stated you might consider using a raw sql query.
10.1.0, Angular
Is it possible to invalidate a single item in ICacheManager? I know I can update a single item or invalidate the whole Cache - but I'm dealing with a quite complex item and can't guarantee the item will contain all information necessary for each and every case, and also I don't want to invalidate the whole Cache.
I tried setting the cached item to null but that is not allowed.
Is it possible to extend ICacheManager adding a method that invalidates a single item?
Hi @zony!
Yes, I'll stick with triggering my custom event manually, thank you!