Otherwise, we may call google::ProgramInvocationShortName() in gflags.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@68
eb4d4688-79bd-11dd-afb4-
1d65580434c0
to += addresses_;
}
const string subject(string("[LOG] ") + LogSeverityNames[severity] + ": " +
to += addresses_;
}
const string subject(string("[LOG] ") + LogSeverityNames[severity] + ": " +
- ProgramInvocationShortName());
+ glog_internal_namespace_::ProgramInvocationShortName());
string body(hostname());
body += "\n\n";
body.append(message, len);
string body(hostname());
body += "\n\n";
body.append(message, len);
const char* base_filename)
: base_filename_selected_(base_filename != NULL),
base_filename_((base_filename != NULL) ? base_filename : ""),
const char* base_filename)
: base_filename_selected_(base_filename != NULL),
base_filename_((base_filename != NULL) ? base_filename : ""),
- symlink_basename_(ProgramInvocationShortName()),
+ symlink_basename_(glog_internal_namespace_::ProgramInvocationShortName()),
filename_extension_(),
file_(NULL),
severity_(severity),
filename_extension_(),
file_(NULL),
severity_(severity),
//
// Where does the file get put? Successively try the directories
// "/tmp", and "."
//
// Where does the file get put? Successively try the directories
// "/tmp", and "."
- string stripped_filename(ProgramInvocationShortName()); // in cmdlineflag
+ string stripped_filename(
+ glog_internal_namespace_::ProgramInvocationShortName());
string hostname;
GetHostName(&hostname);
string hostname;
GetHostName(&hostname);
// Before any calls to syslog(), make a single call to openlog()
static bool openlog_already_called = false;
if (!openlog_already_called) {
// Before any calls to syslog(), make a single call to openlog()
static bool openlog_already_called = false;
if (!openlog_already_called) {
- openlog(ProgramInvocationShortName(), LOG_CONS | LOG_NDELAY | LOG_PID,
+ openlog(glog_internal_namespace_::ProgramInvocationShortName(),
+ LOG_CONS | LOG_NDELAY | LOG_PID,
LOG_USER);
openlog_already_called = true;
}
LOG_USER);
openlog_already_called = true;
}