A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/syslog_8cpp_source.html below:

NCBI C++ ToolKit: src/corelib/syslog.cpp Source File

43 # define LOG_MAKEPRI(facility, priority) ((facility) | (priority)) 48 #define NCBI_USE_ERRCODE_X Corelib_Diag 61

: m_Ident(ident), m_Flags(

flags

),

62

m_DefaultFacility((default_facility == eDefaultFacility) ? 0

63

: x_TranslateFacility(default_facility))

67  "CSysLog not implemented for this platform"

);

76

: m_Ident(ident), m_Flags(

flags

), m_DefaultFacility(default_facility)

80  "CSysLog not implemented for this platform"

);

112  default

: priority =

eNotice

;

break

;

114  Post

(message_str, priority);

132

syslog(

LOG_MAKEPRI

(facility, priority),

"[%d] %s"

,

133

getpid(), message.c_str());

137

syslog(

LOG_MAKEPRI

(facility, priority),

"%s"

, message.c_str());

142

clog << message << endl;

146

clog << message << endl;

156  " fNoOverride is incompatible with other flags."

);

166

<<

"CSysLog::x_TranslateFlags: ignoring extra flags."

);

189 # elif defined(LOG_ODELAY) 208  case eKernel

:

return

LOG_KERN;

209  case eUser

:

return

LOG_USER;

210  case eMail

:

return

LOG_MAIL;

211  case eDaemon

:

return

LOG_DAEMON;

212  case eAuth

:

return

LOG_AUTH;

213  case eSysLog

:

return

LOG_SYSLOG;

214  case eLPR

:

return

LOG_LPR;

215  case eNews

:

return

LOG_NEWS;

216  case eUUCP

:

return

LOG_UUCP;

217  case eCron

:

return

LOG_CRON;

224  case eFTP

:

return

LOG_FTP;

226  case eLocal0

:

return

LOG_LOCAL0;

227  case eLocal1

:

return

LOG_LOCAL1;

228  case eLocal2

:

return

LOG_LOCAL2;

229  case eLocal3

:

return

LOG_LOCAL3;

230  case eLocal4

:

return

LOG_LOCAL4;

231  case eLocal5

:

return

LOG_LOCAL5;

232  case eLocal6

:

return

LOG_LOCAL6;

233  case eLocal7

:

return

LOG_LOCAL7;

261  string

fac_name = reg->

Get

(

"LOG"

,

"SysLogFacility"

);

262  if

( !fac_name.empty() ){

265  if

(fac_name.size() == 6

267

&& fac_name[5] >=

'0'

&& fac_name[5] <=

'7'

) {

static CNcbiApplication * Instance(void)

Singleton method.

const CNcbiRegistry & GetConfig(void) const

Get the application's cached configuration parameters (read-only).

void Write(string &str, TDiagWriteFlags flags=fNone) const

Binary OR of "EDiagWriteFlags".

EDiagSev m_Severity

Severity level.

CSysLog(const string &ident=kEmptyStr, TFlags flags=fNoOverride, EFacility default_facility=eDefaultFacility)

#define ERR_POST_X(err_subcode, message)

Error posting with default error code and given error subcode.

static int x_TranslateFlags(TFlags flags)

static CSysLog * sm_Current

int x_TranslateFacility(EFacility facility)

static const char * kLogName_Syslog

void Post(const SDiagMessage &mess)

Post message to handler.

void HonorRegistrySettings(const IRegistry *reg=0)

@ fNoEndl

No end of line.

@ fNoOverride

never call openlog() ourselves

@ fFallBackToConsole

LOG_CONS.

@ fConnectNow

LOG_NDELAY.

@ fNoChildWait

LOG_NOWAIT.

@ fCopyToStderr

maps to LOG_PERROR if available

@ eDiag_Trace

Trace message.

@ eDiag_Info

Informational message.

@ eDiag_Error

Error message.

@ eDiag_Warning

Warning message.

@ eDiag_Fatal

Fatal error – guarantees exit(or abort)

@ eDiag_Critical

Critical error message.

#define NCBI_THROW(exception_class, err_code, message)

Generic macro to throw an exception, given the exception class, error code and message string.

void Warning(CExceptionArgs_Base &args)

virtual const string & Get(const string &section, const string &name, TFlags flags=0) const

Get the parameter value.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)

Check if a string starts with a specified prefix value.

static bool EqualNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)

Case-insensitive equality of a substring with another string.

@ eNocase

Case insensitive compare.

Definition of all error codes used in corelib (xncbi.lib).

Process information in the NCBI Registry, including working with configuration files.

DEFINE_CLASS_STATIC_MUTEX(CSysLog::sm_Mutex)

#define LOG_MAKEPRI(facility, priority)

Portable system-logging API.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4