Skip to main content
Hello

 

 

Is there any trick to somehow use the LOG_FILENAME value in a Concatenator ?

 

 

Background:

 

I call "fme.exe" from commandline (BAT file) with:

 

     fme.exe ....  -LOG_FILENAME "...."

 

 

So LOG_FILENAME is NOT a parameter (like those --paramname arguments).

 

I cannot find it under Systemparameters either...

 

 

Thanks for any hints

 

Michael
Hi Michael,

 

 

FMELogFile class of Python fmeobjects module has getFileName method which returns the current log file name. So, for example, a PythonCaller with this script adds an attribute which stores the log file name to each feature. ----- import fmeobjects   class LogFileNameExtractor(object):     def __init__(self):         logFile = fmeobjects.FMELogFile()         self.logFileName = logFile.getFileName()              def input(self, feature):         feature.setAttribute('log_filename', self.logFileName)         self.pyoutput(feature)              def close(self):         pass -----   Takashi

Reply