Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6854495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:38:25+00:00 2026-05-27T01:38:25+00:00

We have about 10 different daemons for which we would like to use syslog

  • 0

We have about 10 different daemons for which we would like to use syslog logging. It looks like that for custom applications you’re supposed to use LOCAL0..LOCAL7 facilities. Well, how can one then differentiate between those 10 daemons if he has only 8 possible “sockets”?

For example, if we’d like to have one /var/log/daemon<x> file per each daemon.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:38:25+00:00Added an answer on May 27, 2026 at 1:38 am

    Don’t use different syslog facilities for that. Instead, pass LOG_PID option to openlog and configure appropriately your logger daemon thru syslog.conf, or perhaps use rsyslog or some other syslogger (there are many of them). openlog has a ident argument which can be used by logger dameons for discrimination & filtering of log messages.

    And alternative would be to conventionally decide that logging should go to some application specific file under /var/log (i.e. use just <stdio.h> with fopen, fprintf but don’t forget fflush). This is what many Linux servers (exim4, lighttpd, Xorg, …) are doing. See also the Linux Standard Base which defines conventions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have about 30 different flagged enums that I would like to put into
I have about 5 different heterogenous linux dedicated server which can run Java applications.
Do I have to put every file in a different folder? like: about-us/about-us.php profile/profile.php
I have about 10 different objects that get populated from user input. Instead of
I have about 10 different entities in my J2EE application that right now share
I'm building a Qt application that have about 30 different views (QWidgets). My idea
Here is my situation: I have about 50 different fields of data that I
I have about 10 different APIs. which have absolutely different response structure (all of
I have about 20 different images that I want to fade in and out
I have about 10 different sql statements that update different tables. They look similar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.