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/ncbi__applog_8cpp.html below:

NCBI C++ ToolKit: src/misc/clog/app/ncbi_applog.cpp File Reference

Go to the source code of this file.

Go to the SVN repository for this file.

enum   ETokenType {
  eToken_Undefined , eToken_App , eToken_Request , eUnknown ,
  eJoin , eCompl , eLeft , eRight ,
  eCaret , eDotDot , eAccession , eGt ,
  eLt , eComma , eNumber , eOrder ,
  eSingleDot , eGroup , eOneOf , eReplace ,
  eSites , eString , eOneOfNum , eGap ,
  eUnkGap
}   Token type. More...
    NCBI_PARAM_DECL (string, NCBI, NcbiApplogCGI)   Declare the parameter for logging CGI. More...
    NCBI_PARAM_DEF_EX (string, NCBI, NcbiApplogCGI, kDefaultCGI, eParam_NoThread, NCBI_CONFIG__NCBIAPPLOG_CGI)     NCBI_PARAM_DECL (string, NCBI, NcbiApplogDestination)   Declare the parameter for logging output destination. More...
    NCBI_PARAM_DEF_EX (string, NCBI, NcbiApplogDestination, "", eParam_NoThread, NCBI_CONFIG__NCBIAPPLOG_DESTINATION)     NCBI_PARAM_DECL (string, NCBI, NcbiApplogDestinationFile)   Declare the parameter for a file logging output destination. More...
    NCBI_PARAM_DEF_EX (string, NCBI, NcbiApplogDestinationFile, "", eParam_NoThread, NCBI_CONFIG__NCBIAPPLOG_DESTINATION_FILE)   static bool  s_PeekStdin (const CTimeout &timeout)   Wait for data in stdin with a timeout. More...
  int  main (int argc, const char *argv[])     USING_NCBI_SCOPE   const char *  kErrorMessagePrefix = "NCBI_APPLOG: error: "   Prefix for ncbi_applog error messages. ALl error messages going to stderr. More...
  const char *  kDefaultCGI = "https://intranet.ncbi.nlm.nih.gov/ieb/ToolBox/util/ncbi_applog.cgi"   Default CGI used by default if /log directory is not writable on current machine. More...
  const char *  kApplogRegexp   Regular expression to check lines of raw logs (checks all fields up to appname). More...
  const char *  kPerfRegexp = "^\\d+ (\\d+\\.\\d+)"   Regular expression to check perf message and get position of performance parameters perf <exit_code> <timespan> [<performance_parameters>]. More...
  const unsigned int  kParamsOffset = 15   Parameters offset after the end of the application name. More...
  ◆ ETokenType

Token type.

Enumerator eToken_Undefined  eToken_App  eToken_Request  eUnknown  eJoin  eCompl  eLeft  eRight  eCaret  eDotDot  eAccession  eGt  eLt  eComma  eNumber  eOrder  eSingleDot  eGroup  eOneOf  eReplace  eSites  eString  eOneOfNum  eGap  eUnkGap 

Definition at line 225 of file ncbi_applog.cpp.

◆ main() ◆ NCBI_PARAM_DECL() [1/3]

Declare the parameter for logging CGI.

◆ NCBI_PARAM_DECL() [2/3] NCBI_PARAM_DECL ( string  , NCBI  , NcbiApplogDestination    )

Declare the parameter for logging output destination.

◆ NCBI_PARAM_DECL() [3/3] NCBI_PARAM_DECL ( string  , NCBI  , NcbiApplogDestinationFile    )

Declare the parameter for a file logging output destination.

◆ NCBI_PARAM_DEF_EX() [1/3] ◆ NCBI_PARAM_DEF_EX() [2/3] ◆ NCBI_PARAM_DEF_EX() [3/3] NCBI_PARAM_DEF_EX ( string  , NCBI  , NcbiApplogDestinationFile  , ""  , eParam_NoThread  , NCBI_CONFIG__NCBIAPPLOG_DESTINATION_FILE    ) ◆ s_PeekStdin()

Wait for data in stdin with a timeout.

Return true if stdin have data, false otherwise.

Definition at line 685 of file ncbi_applog.cpp.

References pollfd::events, pollfd::fd, CTimeout::GetAsMilliSeconds(), HANDLE, int, CTimeout::IsInfinite(), kWaitPrecision, n, NULL, poll, POLLIN, and SleepMilliSec().

Referenced by CNcbiApplogApp::Redirect().

◆ kApplogRegexp const char* kApplogRegexp Initial value:

=

"^\\d{5,}/\\d{3,}/\\d{4,}/[NSPRBE ]{3}[0-9A-Z]{16} "

"\\d{4,}/\\d{4,} "

"\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3,9} "

".{15} .{15} [^ ]{1,} +"

"([^ ]{1,}) "

Regular expression to check lines of raw logs (checks all fields up to appname).

NOTE: we need sub-pattern for an application name only!

Definition at line 162 of file ncbi_applog.cpp.

Referenced by CNcbiApplogApp::Redirect(), and CNcbiApplogApp::Run().

◆ kDefaultCGI const char* kDefaultCGI = "https://intranet.ncbi.nlm.nih.gov/ieb/ToolBox/util/ncbi_applog.cgi"

Default CGI used by default if /log directory is not writable on current machine.

Can be redefined in the configuration file.

Definition at line 158 of file ncbi_applog.cpp.

◆ kErrorMessagePrefix const char* kErrorMessagePrefix = "NCBI_APPLOG: error: " ◆ kParamsOffset ◆ kPerfRegexp const char* kPerfRegexp = "^\\d+ (\\d+\\.\\d+)"

Regular expression to check perf message and get position of performance parameters perf <exit_code> <timespan> [<performance_parameters>].

Definition at line 171 of file ncbi_applog.cpp.

Referenced by CNcbiApplogApp::Run().

◆ USING_NCBI_SCOPE

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