All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Teigland <teigland@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] logsys in cluster3
Date: Tue, 1 Jul 2008 14:12:02 -0500	[thread overview]
Message-ID: <20080701191202.GD1259@redhat.com> (raw)
In-Reply-To: <20080701172121.GC1259@redhat.com>

On Tue, Jul 01, 2008 at 12:21:21PM -0500, David Teigland wrote:
> (What doesn't work yet is the "test 1" output
> following the logsys_init() call.)

was missing logsys_flush()


> +int logsys_init(char *name, int mode, int facility, int priority, char *file)
> +{
> +	char *errstr;

Thinking about prefixing, when the mode is set to use syslog, syslog willl
add a prefix for us, otherwise we might want a prefix like this?

        strncpy(logsys_loggers[0].subsys, name,
                sizeof(logsys_loggers[0].subsys));

> +	logsys_config_mode_set(mode);
> +	logsys_config_facility_set(name, facility);
> +	logsys_config_file_set(&errstr, file);
> +	_logsys_config_priority_set(0, priority);
> +	if ((mode & LOG_MODE_BUFFER_BEFORE_CONFIG) == 0) {
> +		_logsys_wthread_create();
> +	}
> +	return 0;



      reply	other threads:[~2008-07-01 19:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-30 15:23 [Cluster-devel] logsys in cluster3 David Teigland
2008-06-30 16:38 ` Fabio M. Di Nitto
2008-06-30 17:31   ` David Teigland
2008-07-01  5:01     ` Fabio M. Di Nitto
2008-07-01 16:37       ` David Teigland
2008-07-01 17:21         ` David Teigland
2008-07-01 19:12           ` David Teigland [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080701191202.GD1259@redhat.com \
    --to=teigland@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.