You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to ask for extra documentation / examples on how to implement and use a custom appender.
I found bits of information (mostly here: https://stackoverflow.com/questions/64862936/how-can-i-create-a-custom-filter-type-using-log4rs), and seems like I have all the pieces now to build the appender, but I'm lost on how to actually initialize log4rs to recognize that if I'm not reading the config from a file (I am reading from a string, since I fall back to include_str! if the config file is not present).
init_raw_config seems to be what I'm looking for, but it does not take a list of Deserialiazers like init_file does.
The text was updated successfully, but these errors were encountered:
Not really, the whole point is to read from a file, if it doesnt exist, fall back to an included str. Generating it programatically would be much more verbose, and would need to duplicate the same thing as a config file when distributing an "example config"
I'd like to ask for extra documentation / examples on how to implement and use a custom appender.
I found bits of information (mostly here: https://stackoverflow.com/questions/64862936/how-can-i-create-a-custom-filter-type-using-log4rs), and seems like I have all the pieces now to build the appender, but I'm lost on how to actually initialize log4rs to recognize that if I'm not reading the config from a file (I am reading from a string, since I fall back to include_str! if the config file is not present).
init_raw_config
seems to be what I'm looking for, but it does not take a list of Deserialiazers likeinit_file
does.The text was updated successfully, but these errors were encountered: