Go to the documentation of this file.Go to the SVN repository for this file.
47 ctx.GetUsername().empty())) {
48 const int user_len = 256;
57 ctx.GetHostname().empty())) {
59 if ( !host.empty() ) {
CDiagContext & GetDiagContext(void)
Get diag context instance.
void SetHostname(const string &hostname)
Set hostname.
void SetDiagUserAndHost(TDiagUserAndHost flags)
Set username and hostname properties for the diag context.
void SetUsername(const string &username)
Set username.
@ fDiag_OverrideExisting
Set current user and host even if they are already set.
@ fDiag_AddUser
Add username to diag context.
@ fDiag_AddHost
Add hostname to diag context.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string gethostname(ESwitch log=eOff)
Return empty string on error.
const char * CORE_GetUsername(char *buf, size_t bufsize)
Equivalent to CORE_GetUsernameEx(buf, bufsize, eNCBI_UsernameLogin) except that it always returns non...