-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Future of Castle logging abstraction and adapters #408
Comments
I'm thinking a library like DynamicProxy doesn't need anything big like LibLog and we just add a hook to |
Originally posted the following regarding LibLog over in #404 (comment):
@jonorossi, in response to your comment on LibLog above: I agree that it might be overkill for DynamicProxy alone, I don't recall seeing much logging in its code base (but I'll take another closer look later today). Your posts above also seem to suggest that Castle libraries may now each go their own separate way when it comes to logging—or did I misunderstand? |
Yes, DynamicProxy doesn't have much logging. I recall adding a few things quite a few years back for common scenarios where people made mistakes, e.g. not implementing
Correct. I see no reason to force DynamicProxy to use the same mechanism as Windsor.
Maybe we need to start by discussing how users should use Windsor without Castle's |
Long post following -- sorry for that. I have been thinking a bit about this. LibLog is no longer being maintained, and its creator recommends adoption of Microsoft.Extensions.Logging. This however isn't an option as long as we want to support any target that isn't Another option I've considered for DynamicProxy is Another option, and perhaps not such a bad one, is to keep our own logging abstractions around, but with a few changes:
For DynamicProxy I would have loved to go the For DynamicProxy only, we could even opt to abandon logging altogether since we only do so in about 4 or 5 code locations. Windsor could remain largely unchanged if we kept our own logging abstraction. We might have to do a major version increase once we reference new packages though. |
Extracted my comments from #404:
We need to work out a plan for how Castle libraries can log (e.g. DynamicProxy telling you about a cache miss), and how users of Windsor could possibly wire up an
ILogger
-like interface to become a new Windsor logging facility.I'm using the term "abstraction" for Castle's
ILogger
andILoggerFactory
; "adapters" for the implementations of theses (e.g. log4net), and "facility" for the Windsor facility./cc @castleproject/committers
The text was updated successfully, but these errors were encountered: