
/******************************************************************************
**
**  This program is free software; you can redistribute it and/or
**  modify it, however, you cannot sell it.
**
**  This program is distributed in the hope that it will be useful,
**  but WITHOUT ANY WARRANTY; without even the implied warranty of
**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**
**  You should have received a copy of the license attached to the
**  use of this software.  If not, visit www.shmoo.com/osiris for
**  details.
**
******************************************************************************/

/*****************************************************************************
**
**  File:    logging.h
**  Date:    February 17, 2002
**  
**  Author:  Brian Wotring
**  Purpose: logging routines.
**
******************************************************************************/

#ifndef LOGGING_H_
#define LOGGING_H_


#ifndef WIN32
#define SYSLOG_OPTIONS	        ( LOG_NDELAY | LOG_PID )
#endif

#define OSI_LOG_DEFAULT_PERMS   0600
#define MAX_LOG_MESSAGE_LENGTH  1024

void log_error( int level, const char *host, const char *message, ... );
void log_info( int level, const char *host, const char *message, ... );
void log_warning( int level, const char *host, const char *message, ... );

void log_cmp_message( OSI_DB_CTX *context, const char *message, ... );

#endif
