(*FNcbiLog_MTLock_Handler)
282 #if defined(__MINGW32__) || defined(__MINGW64__) 285 # define NCBILOG_INT8_FORMAT_SPEC "I64u" 286 # define NCBILOG_UINT8_FORMAT_SPEC "I64" 287 #elif defined(NCBI_OS_MSWIN) 290 # define NCBILOG_INT8_FORMAT_SPEC "I64" 291 # define NCBILOG_UINT8_FORMAT_SPEC "I64u" 295 # define NCBILOG_INT8_FORMAT_SPEC PRIi64 296 # define NCBILOG_UINT8_FORMAT_SPEC PRIu64 1091 extern void NcbiLog_ReqStop(
intstatus,
size_tbytes_rd,
size_tbytes_wr);
1109 extern void NcbiLog_Perf(
intstatus,
doubletimespan,
void(*)(CSeq_entry_Handle seh, IWorkbench *wb, const CSerialObject &obj) handler
char * NcbiLog_AppGetSession(void)
Get session ID (SID) for the whole application.
void NcbiLog_InitMT(const char *appname)
Version of NcbiLog_Init with default MT lock implementation.
TNcbiLog_UInt8 TNcbiLog_TID
ENcbiLog_Destination NcbiLog_SetDestinationFile(const char *logfile_base)
Variant of NcbiLog_SetDestination for logging to a specific file (eNcbiLog_File).
void NcbiLog_MTLock_Delete(TNcbiLog_MTLock lock)
Call cleanup action on the handler, then destroy it.
void NcbiLog_AppSetClient(const char *client)
Set client for the whole application.
void NcbiLog_AppSetSession(const char *session)
Set session ID (SID) for the whole application.
ENcbiLog_AppState NcbiLog_GetState(void)
Get current logging execution state (context and thread specific).
void NcbiLog_AppStopSignal(int exit_status, int exit_signal)
The same as NcbiLog_AppStop(), except it also accepts a signal number, if application exited due to a...
void NcbiLog_InitForAttachedContextST(const char *appname)
Version of NcbiLog_InitForAttachedContext() intended to use in single-threaded applications.
void NcbiLog_AppStop(int exit_status)
Should be called immediately prior to the application exit.
char * NcbiLog_GetCurrentSubHitID_Prefix(const char *prefix)
Get the last generated sub-hit ID.
ENcbiLog_MTLock_Action
The action passed to user defined MT lock handler.
void NcbiLog_Info(const char *msg)
Writes a message to the <appname>.trace file at level 'INFO'.
void NcbiLog_UpdateOnFork(TNcbiLog_OnForkFlags flags)
Update logging internal information after fork().
void NcbiLog_Extra(const SNcbiLog_Param *params)
Can be called at any time.
ENcbiLog_OnForkAction
Actions to perform in NcbiLog_UpdateOnFork()
const char * NcbiLog_GetHostRole(void)
Get host role.
void NcbiLog_SetHitID(const char *hit_id)
Set hit ID (HID, a.k.a.
TNcbiLog_Context NcbiLog_Context_Create(void)
Create new thread-specific logging context object.
ENcbiLog_Destination NcbiLog_SetDestination(ENcbiLog_Destination ds)
Set up diagnostics destination.
void NcbiLog_AppNewSession(void)
Auto-generate and then set brand-new application-wide session ID (SID).
void NcbiLog_ReqStart(const SNcbiLog_Param *params)
Should be called once application startup is complete, before any request processing code is run.
const char * NcbiLog_GetHostName(void)
Get host name.
void NcbiLog_Error(const char *msg)
Writes a message to the <appname>.err log at level 'ERROR'.
void NcbiLog_Context_Destroy(TNcbiLog_Context ctx)
Destroy context structure.
void NcbiLog_InitST(const char *appname)
Version of NcbiLog_Init to use in single-threaded applications.
void NcbiLog_SetRequestId(TNcbiLog_Counter rid)
Set current request ID (RID).
int NcbiLog_Default_MTLock_Handler(void *user_data, ENcbiLog_MTLock_Action action)
Default implementation of simple MT locking callback.
TNcbiLog_Counter NcbiLog_GetRequestId(void)
Get current request ID (RID).
ENcbiLog_AppState
Application execution states shown in the std prefix.
void NcbiLog_SetProcessId(TNcbiLog_PID pid)
Set process ID (PID).
TNcbiLog_UInt8 TNcbiLog_Counter
void NcbiLog_SetHost(const char *host)
Set the host name.
void NcbiLog_Context_Detach(void)
Detach logging context object from the C Logging API.
ENcbiLog_Destination
Where to write the application's diagnostics to.
void NcbiLog_NewSession(void)
Auto-generate and then set brand-new session ID (SID) for the request.
char * NcbiLog_GetCurrentSubHitID(void)
void NcbiLog_NewHitID(void)
ENcbiLog_Severity NcbiLog_SetPostLevel(ENcbiLog_Severity sev)
Set new posting severity threshold.
void NcbiLog_Destroy(void)
Destroy NcbiLog API.
char * NcbiLog_GetNextSubHitID(void)
char * NcbiLog_GetSession(void)
Get sessio ID (SID) for the request.
ENcbiLog_Severity
Severity level for the posted diagnostics.
TNcbiLog_UInt8 TNcbiLog_PID
Process, thread and counter types.
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_SetSplitLogFile(int value)
Set split log files flag.
unsigned __int64 TNcbiLog_UInt8
struct TNcbiLog_MTLock_tag * TNcbiLog_MTLock
void NcbiLog_FreeMemory(void *ptr)
Free memory allocated inside the C logging API.
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'.
int TNcbiLog_OnForkFlags
Binary OR of "ENcbiLog_OnForkAction".
char * NcbiLog_AppGetHitID(void)
Get hit ID (HID, a.k.a.
ENcbiLog_MTLock_Ownership
Type of ownership for MT lock handle.
void NcbiLog_SetThreadId(TNcbiLog_TID tid)
Set thread ID (TID).
void NcbiLog_Fatal(const char *msg)
Writes a message to the <appname>.err log at level 'FATAL' and then terminate the application.
struct SNcbiLog_Context_tag * TNcbiLog_Context
void NcbiLog_InitForAttachedContext(const char *appname)
Version of NcbiLog_Init to use with NcbiLog_Context_* functions only.
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'.
char * NcbiLog_GetHitID(void)
Get hit ID (HID, a.k.a.
int NcbiLog_Context_Attach(TNcbiLog_Context ctx)
Attach logging context object to the C Logging API.
char * NcbiLog_GetNextSubHitID_Prefix(const char *prefix)
Generate a sub-hit ID based on the currently effective (whether it's request-specific or application-...
void NcbiLog_Destroy_Thread(void)
Destroy thread-specific NcbiLog API information.
void NcbiLog_ReqRun(void)
Should be called once request processing initialization is complete.
int(* FNcbiLog_MTLock_Handler)(void *user_data, ENcbiLog_MTLock_Action action)
MT locking callback.
void NcbiLog_AppRun(void)
Should be called after the application is initialized and before its main part.
__int64 TNcbiLog_Int8
Big integer type.
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.
const char * NcbiLog_GetHostLocation(void)
Get host location.
void NcbiLog_AppSetHitID(const char *hit_id)
Set hit ID (HID, a.k.a.
void NcbiLog_Init(const char *appname, TNcbiLog_MTLock mt_lock, ENcbiLog_MTLock_Ownership mt_lock_ownership)
Initializing NcbiLog API.
void NcbiLog_AppNewHitID(void)
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_MT_Unlock
Unlock.
@ eNcbiLog_MT_Init
Init the locker (call first)
@ eNcbiLog_MT_Destroy
Unlock and cleanup (call last)
@ fNcbiLog_OnFork_ResetTimer
Reset execution timer.
@ fNcbiLog_OnFork_UpdateID
Update IDs (default)
@ fNcbiLog_OnFork_PrintStart
Log app-start.
@ eNcbiLog_RequestEnd
RE.
@ eNcbiLog_NotSet
Reserved value, never used in messages.
@ eNcbiLog_RequestBegin
RB.
@ eNcbiLog_Disable
Don't write it anywhere.
@ eNcbiLog_Stdlog
Try /log/<*>/<appname>.log; fallback to .
@ eNcbiLog_File
To specific file, see NcbiLog_SetDestinationFile()
@ eNcbiLog_Stderr
To standard error stream.
@ eNcbiLog_Stdout
To standard output stream.
@ eNcbiLog_Default
Try /log/<*>/<appname>.log; fallback to STDERR.
@ eNcbiLog_Info
Informational message.
@ eNcbiLog_Fatal
Fatal error â guarantees exit (or abort)
@ eNcbiLog_Warning
Warning message.
@ eNcbiLog_Trace
Trace message.
@ eNcbiLog_Error
Error message.
@ eNcbiLog_Critical
Critical error message.
@ eNcbiLog_MT_TakeOwnership
NcbiLog API takes ownership of MT lock.
@ eNcbiLog_MT_NoOwnership
No ownership relationship.
const GenericPointer< typename T::ValueType > T2 value
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
static CNamedPipeClient * client
Thread-specific context data.
TNcbiLog_Counter rid
Request ID (e.g.
TNcbiLog_TID tid
Thread ID.
char session[3 *256+1]
Request specific session ID.
Structure to describe pairs 'key=value', used to posting parameters.
void * user_data
For "handler()".
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