-
Notifications
You must be signed in to change notification settings - Fork 14
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
Custom log appender #32
Comments
You should try using the
|
Yes, I used that, but I miss a way to initialize
But I didn't know how to initialize it using the public view. I thought in using the parent's |
Sorry, I'm mixing things. I think the parent's |
Ok, I understand your issue... I introduced the factory of appenders with commit cfdc443 and before that the Then commit c5f2892 moved the On one hand it is not good to expose the internal which is the reason why I moved the type to the private part. On the other hand, this prevents or brings unnecessary complexity if we want to extend the type. I will try to change the type to use something like:
and make Just curious, what kind of appender have you written? |
Thanks, that should allow extending without hanging from The appender is very specific to my system, which uses a particular format and some custom fields. The idea is that any log produced using |
…nders - add Appender_Internal type to hold the private part of the appender - make the Appender type visible so that it is easier to write custom log appenders outside of the Util.Log.Appenders child package
I've created my own custom implementation of a log appender, but I had to add the new derived type as a child of
Util.Log.Appenders
because there's no other way to initialize the private fieldName
, necessary for the logic to find the new Appender. Is this the intended way, have I missed something or can it be considered a bug/lack of a feature?The text was updated successfully, but these errors were encountered: