1 |
|
/* |
2 |
|
* ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd) |
3 |
|
* |
4 |
< |
* Copyright (c) 1997-2014 ircd-hybrid development team |
4 |
> |
* Copyright (c) 1997-2016 ircd-hybrid development team |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
15 |
|
* |
16 |
|
* You should have received a copy of the GNU General Public License |
17 |
|
* along with this program; if not, write to the Free Software |
18 |
< |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
18 |
> |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 |
19 |
|
* USA |
20 |
|
*/ |
21 |
|
|
94 |
|
static void |
95 |
|
log_write(enum log_type type, const char *message) |
96 |
|
{ |
97 |
< |
char buf[IRCD_BUFSIZE] = ""; |
98 |
< |
|
99 |
< |
strftime(buf, sizeof(buf), "[%FT%H:%M:%S%z]", localtime(&CurrentTime)); |
100 |
< |
|
101 |
< |
fprintf(log_type_table[type].file, "%s %s\n", buf, message); |
97 |
> |
fprintf(log_type_table[type].file, "[%s] %s\n", date_iso8601(0), message); |
98 |
|
fflush(log_type_table[type].file); |
99 |
|
} |
100 |
|
|