[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Cluster-devel] logsys in cluster3



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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]