NCBI C++ ToolKit
|
Go to the source code of this file.
Go to the SVN repository for this file.
Functions | |
void | SaveAppCmdLine (const string &cmd_line) |
string | GetLogFileName (void) |
string | GetLogVisibility (void) |
string | GetSoftFatalAction (void) |
void | SetLogFileName (CTempString name) |
void | ConfigureLogging (const CNcbiRegistry *reg, CTempString section) |
bool | ReConfig_Logging (const CTempString §ion, const CNcbiRegistry &new_reg, string &err_message) |
void | WriteSetup_Logging (CSrvSocketTask &task) |
void | InitLogging (void) |
void | LogNoteThreadsStarted (void) |
void | FinalizeLogging (void) |
void | AssignThreadLogging (SSrvThread *thr) |
void | StartThreadLogging (SSrvThread *thr) |
void | StopThreadLogging (SSrvThread *thr) |
void | ReleaseThreadLogging (SSrvThread *thr) |
void | CheckLoggingFlush (SSrvThread *thr) |
void | Logging_DiskSpaceAlert (void) |
bool | IsLongCommand (Uint8 cmd_len) |
void AssignThreadLogging | ( | SSrvThread * | thr | ) |
Definition at line 606 of file logging.cpp.
References s_AllocMainData(), s_AllocNewData(), s_MainData, and thr.
Referenced by s_AllocThread().
void CheckLoggingFlush | ( | SSrvThread * | thr | ) |
Definition at line 619 of file logging.cpp.
References CSrvTime::CurSecs(), data, s_CheckFatalAbort(), s_MaxFlushPeriod, s_RotateLogBuf(), and thr.
Referenced by s_PerJiffyTasks_Main(), s_PerJiffyTasks_Service(), and s_PerJiffyTasks_Worker().
void ConfigureLogging | ( | const CNcbiRegistry * | reg, |
CTempString | section | ||
) |
Definition at line 524 of file logging.cpp.
References IRegistry::GetBool(), IRegistry::GetInt(), IRegistry::GetString(), i, kUSecsPerMSec, NULL, s_FileReopenPeriod, s_LogBufSize, s_LogRequests, s_LongCmd, s_MaxFlushPeriod, s_SevNames, s_SoftFatal, s_SoftFatalActions, s_VisibleSev, NStr::StringToUInt8_DataSize(), and tmp.
Referenced by ReConfig_Logging(), and s_ReadConfiguration().
void FinalizeLogging | ( | void | ) |
Definition at line 583 of file logging.cpp.
References SLogData::buf, close(), SLogData::cur_ptr, CSrvTime::Current(), CTaskServer::GetStartTime(), CSrvTime::NSec(), NULL, s_AddLogPrefix(), s_AddToLog(), s_LogFd, s_MainData, s_WriteLog(), and CSrvTime::Sec().
Referenced by CTaskServer::Finalize().
string GetLogFileName | ( | void | ) |
Definition at line 146 of file logging.cpp.
References s_FileName.
Referenced by main(), and CNCServer::WriteEnvInfo().
string GetLogVisibility | ( | void | ) |
Definition at line 151 of file logging.cpp.
References s_SevNames, and s_VisibleSev.
Referenced by CNCStat::PrintState(), and WriteSetup_Logging().
string GetSoftFatalAction | ( | void | ) |
Definition at line 156 of file logging.cpp.
References s_SoftFatal, and s_SoftFatalActions.
Referenced by CNCStat::PrintState(), and WriteSetup_Logging().
void InitLogging | ( | void | ) |
Definition at line 573 of file logging.cpp.
References s_AllocMainData(), s_InitFileName(), s_LogWriter, and s_MainData.
Referenced by CTaskServer::Initialize().
Definition at line 555 of file logging.cpp.
References s_LongCmd.
Referenced by CNCMessageHandler::x_CleanCmdResources().
void Logging_DiskSpaceAlert | ( | void | ) |
Definition at line 126 of file logging.cpp.
References s_DiskSpaceAlert.
Referenced by CNCBlobStorage::CheckDiskSpace().
void LogNoteThreadsStarted | ( | void | ) |
Definition at line 517 of file logging.cpp.
References s_MainData, s_RotateLogBuf(), and s_ThreadsStarted.
Referenced by s_StartAllThreads().
bool ReConfig_Logging | ( | const CTempString & | section, |
const CNcbiRegistry & | new_reg, | ||
string & | err_message | ||
) |
Definition at line 549 of file logging.cpp.
References ConfigureLogging().
Referenced by CTaskServer::ReConfig().
void ReleaseThreadLogging | ( | SSrvThread * | thr | ) |
Definition at line 653 of file logging.cpp.
References data, s_WriteLog(), and thr.
Referenced by s_JoinAllThreads().
Definition at line 132 of file logging.cpp.
References s_CmdLine.
Referenced by s_ProcessParameters().
void SetLogFileName | ( | CTempString | name | ) |
Definition at line 138 of file logging.cpp.
References CDirEntry::ConcatPath(), CDir::GetCwd(), CDirEntry::IsAbsolutePath(), CDirEntry::NormalizePath(), and s_FileName.
Referenced by s_ProcessParameters().
void StartThreadLogging | ( | SSrvThread * | thr | ) |
Definition at line 635 of file logging.cpp.
References s_AllocNewData(), and thr.
Referenced by s_StartCurMgrThread().
void StopThreadLogging | ( | SSrvThread * | thr | ) |
Definition at line 641 of file logging.cpp.
References data, free(), s_CheckFatalAbort(), s_QueueLogWrite(), and thr.
Referenced by s_StopCurMgrThread().
void WriteSetup_Logging | ( | CSrvSocketTask & | task | ) |
Definition at line 560 of file logging.cpp.
References GetLogVisibility(), GetSoftFatalAction(), kUSecsPerMSec, s_FileReopenPeriod, s_LogBufSize, s_LogRequests, s_LongCmd, s_MaxFlushPeriod, CSrvSocketTask::WriteBool(), CSrvSocketTask::WriteNumber(), and CSrvSocketTask::WriteText().
Referenced by CTaskServer::WriteSetup().