Questions tagged [log4postsharp]

Log4postsharp is a satellite project for PostSharp, the AOP framework.

Log4postsharp is a satellite project for PostSharp, the AOP framework.

The project itself is available here.

The SharpCrafters forum for it is here.

17 questions
8
votes
1 answer

Filtering log4net on method name - can't quite get it

I'm using log4net to log my web app's progress, using Log4PostSharp to AOP-injectify all methods. This has the desired effect of logging (almost) everything and is fine. I now have a requirement to log JUST Page_Load methods to a file / console. I…
Mike Kingscott
  • 477
  • 1
  • 5
  • 19
4
votes
1 answer

Log4PostSharp for PostSharp 2.0 and .NET framework 2.0

I have a C# project targeting .NET framework 2.0. I also want to use PostSharp 2.0 Community Edition + Log4PostSharp. The problem is that it's not possible to use Log4PostSharp because it targets 3.5 framework. Also it's not possible to change…
ReVolly
  • 126
  • 8
2
votes
1 answer

Postsharp and log4net and log4postsharp

I stumbled upon log4postsharp site which is a great tool that uses postsharp for injecting log4net statements into your code at compile time. The current version of log4postsharp uses Postsharp 1.0 which has some limitations. Does anyone know if…
Fadeproof
  • 3,038
  • 5
  • 31
  • 42
2
votes
2 answers

Log4Postsharp (dead?) with postsharp 2.0 or drop for ELMAH?

Does anyone know if the latest build (march 2010 - i beleive called log4postsharp 2.0) is compatible with postsharp 2.0 community edition? I have used postsharp 1.5 together the log4postsharp in the past and was very pleased with the outcome. But…
mark smith
  • 20,637
  • 47
  • 135
  • 187
1
vote
1 answer

How do I use postsharp logging to write to applicationInsights? and How do I test that the logs are being written to application Insights?

I was trying to use application Insights as my logging backend from postsharp references. I have setup the application insights and was able to see live metrics. But I am not quite sure if postsharp logging alone is able to write to application…
1
vote
1 answer

tools/library to do noninvasive logging

I am wondering if any tool can help do noninvasive logging for a third party assembly library. Can log4net/Postsharp do it?
user496949
  • 83,087
  • 147
  • 309
  • 426
1
vote
0 answers

OnSuccess method working after OnException method happened !! (PostSharp)

I am using PostSharp to making custom attributes that handling method logging , then write it in database table . every thing it's working fine , but OnSuccess working every time ! even when i have an exception !! my thought about OnSuccess is :…
1
vote
1 answer

Enable postsharp in production

I trying to understand AOP and PostSharp and was wondering in production how can I turn on PostSharp to capture logs and equally turn it off when not required? I am hoping there is a flag in a config file that will enable me to turn on logging or…
JD.
  • 15,171
  • 21
  • 86
  • 159
1
vote
0 answers

AOP Ignoring logsuccess

We are using PostSharp as our AOP engine and somehow it is acting really weird. I know that it puts hook points before and after the function and it logs LogEntry and LogSuccess events just before and after the attributed function is called. I am…
Lost
  • 12,007
  • 32
  • 121
  • 193
0
votes
1 answer

I'm running a .NET core application and when i'm trying to hit api from front end i'm getting the below error

{ **"message":** "An error has occurred.", **"exceptionMessage"**: "The caching back-end has not been initialized. Set the CachingServices.DefaultBackend property before accessing a cached method.", **"exceptionType"**:…
Siva
  • 9
  • 1
0
votes
1 answer

Postsharp Aspect class OnEntry Method is not calling from web api controller

As, I am working on web api project and trying to implement the PostSharp Aspect class to loggin the request and other staff. OnEntry method OnSucess method is not getting called when api method is calling. If I use same Aspect class in other MVC…
Arun Singh
  • 525
  • 2
  • 8
  • 20
0
votes
1 answer

How do I write my Aspect classes and my problem solves?

I have 2 errors because of my little knowledge of PostSharp (last version). My project's three aspect classes, but I only get 2 errors. When the getall method runs in my mvc project, I want log information to be generated in my database and…
0
votes
1 answer

Visual Studio 2005 Support by PostSharp?

My Application is running in visual studio 2005 .Net framework 2.0.Is Visual Studio 2005 Supported by Post Sharp? Nuget Manager package is not a part of visual studio 2005. Let know your input. Thanks, Kumar Manish
0
votes
0 answers

*.psproj not excluding the class or method

I am trying to exclude the class or method from configuration file ( *.psproj file ) for specific project. but it is not excluding, What went wrong. Please correct me. Please find the attachment of psproj config file.I am using two version of…
0
votes
0 answers

add postsharp to a .net library which is to be used by other .net applications

Ive added postsharp to a .net logging application which is a library to be used by other .net projects for logging their logs. I want the aspect created in this library to be available in the applications using that library. How do I achieve that?
Vasudha Gupta
  • 171
  • 11
1
2