NLogC printf()

1 message Options
Embed this post
Permalink
rammsteini

NLogC printf()

Reply Threaded More More options
Print post
Permalink
I have a question bout the printf () style parameter usage mentioned in http://www.nlog-project.org/capi.html

I tried the following c-code:

int e = 4;
char f[] = "foo";
NLog_Info("", "f=%s e=%d", f, e);

which, in my opinion,  should result in a log entry like:

2008-09-29 10:10:35.6978  Info  f=foo e=4

but the logfile says:

2008-09-29 10:10:35.6978  Info  f=f=%s e=%d e=1244308



What happend?

/erik