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

NCBI C++ ToolKit: src/misc/clog/ncbi_c_log_p.h Source File

1 #ifndef NCBI_C_LOG_P__H 2 #define NCBI_C_LOG_P__H 52 #if defined(NCBI_OS_UNIX) 53 # define NCBILOG_USE_FILE_DESCRIPTORS 1 61 #define NCBILOG_HOST_MAX 256 62 #define NCBILOG_CLIENT_MAX 256 63 #define NCBILOG_SESSION_MAX 256 64 #define NCBILOG_HITID_MAX 1024 65 #define NCBILOG_APPNAME_MAX 1024 66 #define NCBILOG_PORT_MAX 65535 72 #define NCBILOG_ENTRY_MIN 127 75 #define NCBILOG_ENTRY_MAX_ALLOC 131072 76 #define NCBILOG_ENTRY_MAX 131070 101 #define CLOSE_CLEANUP 1 102 #define CLOSE_FOR_REOPEN 0 114 #if NCBILOG_USE_FILE_DESCRIPTORS 115  #if defined(NCBI_OS_MSWIN) 116  # error "Using file descriptors for file operations implemented on Unix only." 119  #define kInvalidFileHandle (-1) 122  #define kInvalidFileHandle NULL 271 extern void NcbiLogP_AppStop

(

int

exit_status,

int

exit_signal,

double

execution_time);

285 extern void NcbiLogP_PerfStr

(

int

status,

double

timespan,

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