(
intexit_status,
intexit_signal,
doubleexecution_time);
285 extern void NcbiLogP_PerfStr(
intstatus,
doubletimespan,
const char* params);
TNcbiLog_UInt8 TNcbiLog_TID
ENcbiLog_AppState
Application execution states shown in the std prefix.
TNcbiLog_UInt8 TNcbiLog_Counter
ENcbiLog_Destination
Where to write the application's diagnostics to.
ENcbiLog_Severity
Severity level for the posted diagnostics.
TNcbiLog_UInt8 TNcbiLog_PID
Process, thread and counter types.
unsigned __int64 TNcbiLog_UInt8
const GenericPointer< typename T::ValueType > T2 value
TNcbiLog_Context NcbiLogP_GetContextPtr(void)
int NcbiLogP_DisableChecks(int disable)
Enable/disable internal checks (enabled by default) Used by ncbi_applog.
void NcbiLogP_Raw(const char *line)
Post already prepared line in applog format to the applog.
void NcbiLogP_Raw2(const char *line, size_t n)
Variant of NcbiLogP_Raw with already known line size to avoid double length calculation.
const char * NcbiLogP_GetHitID_Env(void)
Get value of hit ID from the environment.
const char * NcbiLogP_GenerateHitID(char *buf, size_t n, TNcbiLog_UInt8 uid)
Generate new Hit ID string.
const char * NcbiLogP_GenerateSID(char *buf, size_t n, TNcbiLog_UInt8 uid)
Generate new SID string.
ENcbiLog_Destination NcbiLogP_SetDestination(ENcbiLog_Destination ds, unsigned int port, const char *logsite)
Variant of NcbiLog_SetDestination.
#define NCBILOG_HITID_MAX
void NcbiLogP_ReqStartStr(const char *params)
Variant of NcbiLog_ReqStart, that use already prepared string with parameters.
ENcbiLog_DiagFile
Type of file for the output.
void NcbiLogP_ReInit(void)
TNcbiLog_Info * NcbiLogP_GetInfoPtr(void)
void NcbiLogP_AppStop(int exit_status, int exit_signal, double execution_time)
Should be called immediately prior to the application exit.
#define NCBILOG_CLIENT_MAX
TNcbiLog_UInt8 NcbiLogP_GenerateUID(void)
Generate new unique process ID.
void NcbiLogP_ExtraStr(const char *params)
Variant of NcbiLog_Extra, that use already prepared string with parameters.
const char * NcbiLogP_GetSessionID_Env(void)
Get value of session ID from the environment.
void NcbiLogP_PerfStr(int status, double timespan, const char *params)
Variant of NcbiLog_Perf, that use already prepared string with parameters.
int NcbiLogP_GetEnv_UInt(const char *env_var_name, unsigned int *value)
Get unsigned int value from a numeric-based environment variable.
unsigned int NcbiLogP_SetServerPort(unsigned int server_port)
Redefine value of $SERVER_PORT environment variable.
#define NCBILOG_APPNAME_MAX
#define NCBILOG_SESSION_MAX
Application access log and error postings info structure (global).
unsigned int server_port
$SERVER_PORT on calling/current host
char * file_trace_name
Saved file names for log files.
char client[256+1]
App-wide client IP address (UNK_CLIENT if unknown)
ENcbiLog_Destination destination
Current logging destination.
TNcbiLog_Counter rid
Request ID (e.g.
const char * logsite
Pointer to logsite name.
const char * host_location
Host location (NULL if unknown or not set)
char * app_base_name
Pointer to application base name.
const char * host_role
Host role (NULL if unknown or not set)
TNcbiLog_PID pid
Process ID.
int remote_logging
1 if logging request is going from remote host
time_t last_reopen_time
Last reopen time for log files.
ENcbiLog_AppState state
Application state.
unsigned int phid_sub_id
App-wide sub-hit ID counter.
char * message
Buffer used to collect a message and log it.
ENcbiLog_Severity post_level
Posting level.
int phid_inherit
1 if PHID set explicitly and should be inherited (by requests)
char host[256+1]
Name of the host where the process runs (UNK_HOST if unknown)
int reuse_file_names
File names where not changed, reuse it.
int split_log_file
Split log files flag.
int user_posting_time
If 1 use post_time as is, and never change it.
unsigned int phid_sub_id_limit
Initializes from LOG_ISSUED_SUBHIT_LIMIT env variable.
int is_applog
1 if logging going to /log
char appname[3 *1024+1]
Name of the application (UNK_APP if unknown)
char * app_full_name
Pointer to a full application name (argv[0])
TNcbiLog_Counter psn
Serial number of the posting within the process.
TFileHandle file_trace
Saved files for log files.
char phid[3 *1024+1]
App-wide hit ID (empty string if unknown)
TNcbiLog_UInt8 guid
Globally unique process ID.
char session[3 *256+1]
App-wide session ID (UNK_SESSION if unknown)
STime app_start_time
Application start time.
STime post_time
GMT time at which the message was posted, use current time if it is not specified (equal to 0)
Thread-specific context data.
int is_client_set
1 if request 'client' has set, even to empty
STime req_start_time
Request start time.
char phid[3 *1024+1]
Request specific hit ID.
unsigned int phid_sub_id
Request specific sub-hit ID counter.
char client[256+1]
Request specific client IP address.
TNcbiLog_Counter tsn
Serial number of the posting within the thread.
TNcbiLog_Counter rid
Request ID (e.g.
TNcbiLog_TID tid
Thread ID.
ENcbiLog_AppState state
Application state.
char session[3 *256+1]
Request specific session ID.
int is_session_set
1 if request 'session' has set, even to empty
Application access log and error postings info structure.
unsigned long ns
Nanosecond part of the time.
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