(
intargc,
const char* argv[]
)
68 #if defined(NCBI_DEMO_MT_LOCK_HANDLER) 105perror(
"Error initialize destination");
220 doubletimespan = 1.2345678;
222{
"resource",
"test"},
int main(int argc, const char *argv[])
void NcbiLog_InitMT(const char *appname)
Version of NcbiLog_Init with default MT lock implementation.
void NcbiLog_AppStop(int exit_status)
Should be called immediately prior to the application exit.
ENcbiLog_MTLock_Action
The action passed to user defined MT lock handler.
void NcbiLog_Extra(const SNcbiLog_Param *params)
Can be called at any time.
ENcbiLog_Destination NcbiLog_SetDestination(ENcbiLog_Destination ds)
Set up diagnostics destination.
void NcbiLog_ReqStart(const SNcbiLog_Param *params)
Should be called once application startup is complete, before any request processing code is run.
void NcbiLog_Error(const char *msg)
Writes a message to the <appname>.err log at level 'ERROR'.
void NcbiLog_SetRequestId(TNcbiLog_Counter rid)
Set current request ID (RID).
ENcbiLog_Destination
Where to write the application's diagnostics to.
ENcbiLog_Severity NcbiLog_SetPostLevel(ENcbiLog_Severity sev)
Set new posting severity threshold.
void NcbiLog_Destroy(void)
Destroy NcbiLog API.
void NcbiLog_AppStart(const char *argv[])
Should be called as soon as possible during application initialization.
void NcbiLog_ReqStop(int status, size_t bytes_rd, size_t bytes_wr)
Should be called once request processing is complete.
void NcbiLog_Perf(int status, double timespan, const SNcbiLog_Param *params)
Can be called at any time.
void NcbiLog_SetClient(const char *client)
Set client for the request.
void NcbiLog_Warning(const char *msg)
Writes a message to the <appname>.err log at level 'WARNING'.
void NcbiLog_Critical(const char *msg)
Writes a message to the <appname>.err log at level 'CRITICAL'.
void NcbiLog_Trace(const char *msg)
Writes a message to the <appname>.trace file at level 'TRACE'.
void NcbiLog_ReqRun(void)
Should be called once request processing initialization is complete.
void NcbiLog_AppRun(void)
Should be called after the application is initialized and before its main part.
TNcbiLog_MTLock NcbiLog_MTLock_Create(void *user_data, FNcbiLog_MTLock_Handler handler)
Create new MT lock.
void NcbiLog_SetTime(time_t timer, unsigned long nanoseconds)
Set the posting date and time.
void NcbiLog_Init(const char *appname, TNcbiLog_MTLock mt_lock, ENcbiLog_MTLock_Ownership mt_lock_ownership)
Initializing NcbiLog API.
void NcbiLog_Note(ENcbiLog_Severity sev, const char *msg)
Writes a message using "Note[X]" notation for severity.
void NcbiLog_SetSession(const char *session)
Set session ID (SID) for the request.
@ eNcbiLog_Disable
Don't write it anywhere.
@ eNcbiLog_Stdout
To standard output stream.
@ eNcbiLog_Warning
Warning message.
@ eNcbiLog_Trace
Trace message.
@ eNcbiLog_Error
Error message.
@ eNcbiLog_MT_TakeOwnership
NcbiLog API takes ownership of MT lock.
Structure to describe pairs 'key=value', used to posting parameters.
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