dynamic redirection of log4c to syslog

Hi Experts,
Is there a way to change the "appender" in log4c to change dynamically.  Lets say my system is currently logging to file appender and I wanted to change it to switch to syslog without restarting it.  Is it possible?
ambuliAsked:
Who is Participating?
 
jkrConnect With a Mentor Commented:
Haven't tried that, but shoudn't

log4c_category_set_appender(log4c_category_get("log4c.myapp"),log4c_appender_get("syslog"));

Open in new window


do that?
0
 
ambuliAuthor Commented:
In case it is not possible, how can I add this functionality
0
 
ambuliAuthor Commented:
Yes - After posting this question I tried it and it worked.  thank you!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.