• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/include/atalk/
1b0VIM 7.2t��Tmk1�*tabfoxconncpe2~tab/4500v2/build/2014_02_25_WNDR4500v2_BSP_6.37.14.8/ap/gpl/timemachine/netatalk-2.2.5/include/atalk/logger.hutf-8
23210#"! Utp�y����^z�ad�y�������_[XD0,�����H�
34567@
8&
9#
10
11�rb_S�����lDA�
121314j
15g
16d
17[
18
19�	�	�	�	�	�	�	�	�	{	t	s	O	5					��������xhXGDC	��������s-*)(��^��Y��?>)��i,��M��#define logfacility_authpriv    (10<<3) /* security/auth messages (private) */#define logfacility_lpr         (6<<3)  /* line printer subsystem */#define logfacility_syslog      (5<<3)  /* messages generated by syslogd */#define logfacility_auth        (4<<3)  /* security/authorization messages */#define logfacility_daemon      (3<<3)  /* system daemons */#define logfacility_mail        (2<<3)  /* mail system */#define logfacility_user        (1<<3)  /* random user-level messages *//* redefine these so they can don't interfeer with syslog *//* facility codes */#define logoption_nline       0x80   /* ignore the line that called the log*/#define logoption_nfile       0x40   /* ignore the file that called the log */#define logoption_perror      0x20   /* log to stderr as well */#define logoption_ndelay      0x08   /* don't delay open */#define logoption_cons        0x02   /* log on the console if error logging */#define logoption_pid         0x01   /* log the pid with each message */ * break existing source code *//* the following do not work anymore, they're only provided in order to not#define logoption_nsrcinfo    0x04   /* don't log source info *//* these can be used in standard logging too *//* redefine these so they can don't interfeer with syslog *//* Display Option flags. */};  logtype_end_of_list_marker  /* don't put any logtypes after this */  logtype_uams,  logtype_papd,  logtype_atalkd,  logtype_dsi,  logtype_afpd,  logtype_cnid,  logtype_logger,  logtype_default,enum logtypes {/* this is the enum specifying all availiable logtypes */};    log_maxdebug    log_debug9,    log_debug8,    log_debug7,    log_debug6,    log_debug,    log_info,    log_note,    log_warning,    log_error,    log_severe,    log_none,enum loglevels {#endif#define UAM_MODULE_EXPORT #ifndef UAM_MODULE_EXPORT/* logger is used by pam modules */#endif#include "config.h"#ifdef HAVE_CONFIG_H#include <stdbool.h>#include <stdio.h>#include <limits.h> */ * forgets to setup logging before calling LOG. * dont get confused by log_init(). It only gets called if your app * Note: * * * loglevel can't be changed at runtime. * directly. These daemons are therefore limited to syslog logging. Also their * *    syslog_setup(int loglevel, enum logtypes logtype, int display_options, int facility); * * use the new API and might still call * Some netatalk daemons (31.3.2009.: e.g. atalkd, papd) may not be converted to * * ------------------- * "Legacy" interface: * * See also libatalk/util/test/logger_test.c * setuplog("default log_debug /var/log/debug.log"); * Example: * * want to use. * use the default if not setup itself. This is probabyl the only thing you may * you can setup a default with "Default". Any other logtype used in LOG will then * <logtype>: * * disables file logging. * Calling without <any_string> disables syslog logging, calling with <any_string> * *    confstring = "<logtype> [<any_string>]" *    unsetuplog(char *confstring) * * You can later disable logging by calling *  * configures extended logging to <filename>. * Calling without <filename> configures basic logging to syslog. Specifying <filename> * *    confstring = "<logtype> <loglevel> [<filename>]" *    setuplog(char *confstring) * * ------------------- * Standard interface: *  * ================ * logger API Setup * *  * LOG(<logtype>, <loglevel>, "<string>"[, args]); * * ====================== * logger LOG Macro Usage/* #define _ATALK_LOGGER_H 1#ifndef _ATALK_LOGGER_Had��aRQ:9#endif /* _ATALK_LOGGER_H */#endif  /* NO_DEBUG */    } while(0)            make_log_entry((log_level), (type), __FILE__, __LINE__,  __VA_ARGS__); \        if (log_level <= type_configs[type].level)                      \