Workaround the EOL at the end of the timestamp, and reduce its size.

This commit is contained in:
Guillaume Melquiond 2005-05-01 09:54:30 +00:00
parent 914823feef
commit bc9a69097c

View file

@ -92,7 +92,9 @@ std::ostream &logger::operator()(log_domain const &domain, bool show_names) cons
else {
if (timestamp) {
time_t t = time(NULL);
std::cerr << ctime(&t) << ' ';
char buf[100];
strftime(buf, 100, "%b %d %H:%M:%S ", localtime(&t));
std::cerr << buf;
}
if (show_names)
std::cerr << name_ << ' ' << d.name_ << ": ";