?
Solved

dynamic redirection of log4c to syslog

Posted on 2013-11-18
3
Medium Priority
?
419 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

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…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month8 days, 4 hours left to enroll

765 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