NCBI C++ ToolKit
logging.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef NETCACHE__LOGGING__HPP
2 #define NETCACHE__LOGGING__HPP
3 /* $Id: logging.hpp 76997 2017-03-17 13:19:30Z gouriano $
4  * ===========================================================================
5  *
6  * PUBLIC DOMAIN NOTICE
7  * National Center for Biotechnology Information
8  *
9  * This software/database is a "United States Government Work" under the
10  * terms of the United States Copyright Act. It was written as part of
11  * the author's official duties as a United States Government employee and
12  * thus cannot be copyrighted. This software/database is freely available
13  * to the public for use. The National Library of Medicine and the U.S.
14  * Government have not placed any restriction on its use or reproduction.
15  *
16  * Although all reasonable efforts have been taken to ensure the accuracy
17  * and reliability of the software and data, the NLM and the U.S.
18  * Government do not and cannot warrant the performance or results that
19  * may be obtained by using this software or data. The NLM and the U.S.
20  * Government disclaim all warranties, express or implied, including
21  * warranties of performance, merchantability or fitness for any particular
22  * purpose.
23  *
24  * Please cite the author in any work or product based on this material.
25  *
26  * ===========================================================================
27  *
28  * Authors: Pavel Ivanov
29  *
30  * File Description:
31  */
32 
33 
35 
36 
37 void SaveAppCmdLine(const string& cmd_line);
38 string GetLogFileName(void);
39 string GetLogVisibility(void);
40 string GetSoftFatalAction(void);
41 void SetLogFileName(CTempString name);
42 void ConfigureLogging(const CNcbiRegistry* reg, CTempString section);
43 bool ReConfig_Logging(const CTempString& section, const CNcbiRegistry& new_reg, string& err_message);
45 void InitLogging(void);
46 void LogNoteThreadsStarted(void);
47 void FinalizeLogging(void);
53 void Logging_DiskSpaceAlert(void);
54 bool IsLongCommand(Uint8 cmd_len);
55 
56 
58 
59 #endif /* NETCACHE__LOGGING__HPP */
CNcbiRegistry –.
Definition: ncbireg.hpp:913
Task controlling a socket.
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
Definition: tempstr.hpp:65
uint64_t Uint8
8-byte (64-bit) unsigned integer
Definition: ncbitype.h:105
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
void AssignThreadLogging(SSrvThread *thr)
Definition: logging.cpp:606
string GetLogFileName(void)
Definition: logging.cpp:146
void SaveAppCmdLine(const string &cmd_line)
Definition: logging.cpp:132
void CheckLoggingFlush(SSrvThread *thr)
Definition: logging.cpp:619
void LogNoteThreadsStarted(void)
Definition: logging.cpp:517
void ReleaseThreadLogging(SSrvThread *thr)
Definition: logging.cpp:653
void ConfigureLogging(const CNcbiRegistry *reg, CTempString section)
Definition: logging.cpp:524
string GetSoftFatalAction(void)
Definition: logging.cpp:156
void WriteSetup_Logging(CSrvSocketTask &task)
Definition: logging.cpp:560
void FinalizeLogging(void)
Definition: logging.cpp:583
void Logging_DiskSpaceAlert(void)
Definition: logging.cpp:126
void StartThreadLogging(SSrvThread *thr)
Definition: logging.cpp:635
bool ReConfig_Logging(const CTempString &section, const CNcbiRegistry &new_reg, string &err_message)
Definition: logging.cpp:549
void InitLogging(void)
Definition: logging.cpp:573
void SetLogFileName(CTempString name)
Definition: logging.cpp:138
string GetLogVisibility(void)
Definition: logging.cpp:151
void StopThreadLogging(SSrvThread *thr)
Definition: logging.cpp:641
bool IsLongCommand(Uint8 cmd_len)
Definition: logging.cpp:555
CRef< CTestThread > thr[k_NumThreadsMax]
Definition: test_mt.cpp:267
Modified on Sun Apr 14 05:29:32 2024 by modify_doxy.py rev. 669887