Project

General

Profile

Feature #415 » just_filename.patch

Change the %l pattern to only print the file name - Uli Schlachter, 2012-08-24 12:01

View differences:

oflog/libsrc/patlay.cc
#define INCLUDE_UNISTD /* needed for declaration of getpid() */
#include "dcmtk/ofstd/ofstdinc.h"
#include "dcmtk/ofstd/ofstd.h"
#ifdef DCMTK_LOG4CPLUS_HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
......
case FULL_LOCATION_CONVERTER:
{
tstring const & filename = event.getFile();
tstring const & filepath = event.getFile();
OFString filename;
OFStandard::getFilenameFromPath(filename, filepath);
if(! filename.empty ()) {
return filename
+ DCMTK_LOG4CPLUS_TEXT(":")
    (1-1/1)