Open astrohart opened 2 years ago
PostSharp.Community.Packer
(and Fody.Costura
which is the origin of this repo) do include .cs
files in the project to facilitate the assembly loading functionality.
Since you are probably multicasting [Log]
onto the whole assembly, you include logging of these runtime methods, which are executed immediately after program's execution are meant to register handler for loading referenced assemblies. You are seeing output of logging of these methods.
The solution is to simply exclude logging from PostSharp.Community.Packer.Templates
namespace, i.e.:
[assembly: Log(AttributeExclude = true, AttributeTargetTypes = "PostSharp.Community.Packer.Templates*", AttributePriority = 2)]
We will document this in the readme file.
Hello,
When I utilize
PostSharp.Community.Packer
in conjunction withPostSharp.Patterns.Diagnostics
, entries are written to my log file which I assume are fromPostSharp.Community.Packer
:I suppose, in principle, this is a good thing, as it helps us diagnose if there are any issues with
PostSharp.Community.Packer
; however, for my use case, I would like to disable/suppress logging for thePostSharp.Community.Packer
content.Is there an aspect I can put in, e.g., my
GlobalAspects.cs
file to in order to suppress the logging that is not from my own software?Thank you.
Regards,
Brian Hart