File: gdslogger.c

package info (click to toggle)
ion 3.2.1%2Bdfsg-1.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,768 kB
  • ctags: 11,049
  • sloc: ansic: 141,798; sh: 22,848; makefile: 7,818; python: 1,638; sql: 311; perl: 197; awk: 178; xml: 50; java: 19
file content (15 lines) | stat: -rw-r--r-- 331 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
static void	writeMemoToStdout(char *text)
{
	time_t	currentTime = getUTCTime();
	char	timestampBuffer[20];
	char	msgbuf[256];

	writeTimestampLocal(currentTime, timestampBuffer);
	isprintf(msgbuf, sizeof msgbuf, "[%s] %s", timestampBuffer, text);
	puts(msgbuf);
}

static void	ionRedirectMemos()
{
	setLogger(writeMemoToStdout);
}