Solved

dynamic redirection of log4c to syslog

Posted on 2013-11-18
3
394 Views
Last Modified: 2013-11-20
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?
0
Comment
Question by:ambuli
  • 2
3 Comments
 

Author Comment

by:ambuli
ID: 39657644
In case it is not possible, how can I add this functionality
0
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 39660387
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
 

Author Closing Comment

by:ambuli
ID: 39662974
Yes - After posting this question I tried it and it worked.  thank you!
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now