Using dcmdump.exe with "-log-config" option, logfile empty.

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
kamil
Posts: 63
Joined: Fri, 2009-04-17, 09:18

Using dcmdump.exe with "-log-config" option, logfile empty.

#1 Post by kamil »

Hi, I follow the http://support.dcmtk.org/wiki/dcmtk/howto/logfile instruction, "dcmtk.log" logfile is created, but the file is empty, nothing in it.

dcmtk version: 3.6.0 (2011-01-06)

cmd:

Code: Select all

dcmdump +T -lc e:\log.cfg e:\CT.dcm
log.cfg:

Code: Select all

log4cplus.rootLogger = INFO, logfile

log4cplus.appender.logfile = log4cplus::FileAppender
log4cplus.appender.logfile.File = dcmtk.log
log4cplus.appender.logfile.Append = true
log4cplus.appender.logfile.ImmediateFlush = true

log4cplus.appender.logfile.layout = log4cplus::PatternLayout
log4cplus.appender.logfile.layout.ConversionPattern = %D{%Y-%m-%d %H:%M:%S.%q} %5p: %m%n
It still print all result in cmd.

Any suggestion? Thank you!

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Using dcmdump.exe with "-log-config" option, logfile emp

#2 Post by J. Riesmeier »

The logger is only used for errors, warnings, debug messages and the like. The tool dcmdump always prints the textual dump of the DICOM file to the standard output (stdout/cout). Of course, you could also redirect this output to a file ...

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Baidu [Spider], Google [Bot], Majestic-12 [Bot] and 1 guest