Hi Everyone,
I wrote an input format plugin. Since I couldn't get my custom properties to be set, I created additional command line options. If I use the additional command line options with the -h option, they work correctly. However, when using the additional command line options with a query, I get an error
Error: invalid parameter "iCfgFile=D"
For example:
Here is the working version:-
[c:\devtools\logparser]LogParser.exe -h -i:COM -iProgID:com.bentley.pwise.log4cxx.Log4cxxInputFormat -iCfgFile="D:\ProjectWiseTrunk\Build\delivery\Program Files\Bentley\ProjectWise\bin\mcm.l
og.xml" -iAppenderName=FileAppender
Input format: COM (Custom COM Input Format)
Input format COM plugins
FROM syntax:
<any>
Any from-entity supported by the specified COM plugin
Parameters:
-iProgID <progid> : Version-independent Prog ID of the COM
plugin to instantiate [default
value=not specified]
-iCOMParams <name>=<value> [, ...] : <name>=<value> pairs of parameters for
the COM plugin [default value=not
specified]
-iCOMServer <server name> : Name of the remote server where the COM
plugin is to be instantiated [default
value=local machine]
Fields:
[Log4cxxInputFormat] Checking command line arguments for -iCfgFile and -iAppenderName parameters.
[Log4cxxInputFormat] Retrieved 6 command line args.
[Log4cxxInputFormat] Found -iCfgFile cl option as: -iCfgFile=D:\ProjectWiseTrunk\Build\delivery\Program Files\Bentley\ProjectWise\bin\mcm.log.xml
[Log4cxxInputFormat] Found -iAppenderName cl option as: -iAppenderName=FileAppender
[Log4cxxInputFormat] Using XML Config File as: D:\ProjectWiseTrunk\Build\delivery\Program Files\Bentley\ProjectWise\bin\mcm.log.xml
[Log4cxxInputFormat] Using appender as: FileAppender
[Log4cxxInputFormat] Using message pattern as:
[Log4cxxInputFormat] No input source provided. Skipping log file parse.
ThreadID (S) PlainText (S) Priority (S) PlainText2 (S)
Category (S) PlainText3 (S) TimeStamp (S) PlainText4 (S)
TimeStamp2 (S) PlainText5 (S) TimeStamp3 (S) PlainText6 (S)
TimeStamp4 (S) PlainText7 (S) Message (S)
Examples:
Create a CSV file with information from a custom COM plugin:
LogParser "SELECT * INTO Report.csv FROM MyFromEntity" -i:COM
-iProgID:MyCompany.MyComPlugin -iCOMParams:TargetMachine=localhost,Exten
dedFields=on
However, here is the non-working version:-
[c:\devtools\logparser]LogParser.exe -i:COM -o:NAT "SELECT * FROM mcm.log" -iProgID:com.bentley.pwise.log4cxx.Log4cxxInputFormat -iCfgFile="D:\ProjectWiseTrunk\Build\delivery\Program Files\B
entley\ProjectWise\bin\mcm.log.xml" -iAppenderName=FileAppender
I am not sure why it works in one situation and not another. Any pointers?
thanks for any help,
-vijai.
Error: invalid parameter "iCfgFile=D"