http://msdn.microsoft.com/en-us/library/ms136054.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1
signature
Parameters
- informationCode
- Type: System.Int32
An Integer that identifies the informational message.
- subComponent
- Type: System.String
A String that contains more detail about the event source.
- description
- Type: System.String
The text of the message.
- helpFile
- Type: System.String
The path to the Help file that contains detailed information.
- helpContext
- Type: System.Int32
The identifier of the topic in the Help file.
- fireAgain
Type: System.Boolean
A Boolean that indicates this should continue firing or stop firing. A value oftrue indicates that it should continue firing.
If I am logging to a file, what do i pass for informationCode, ive seen both 0 and -1
For example, im doing this in a script task
Dts.Events.FireInformation(0, "Order# ", "Processing Order# " + sOrderNum, "", 0, False)
When looking at the log, i see a line starting with OnInformation, but my log entry is not there. It does look like my variable value for sOrderNum made it, but the text did not?
(the script task is named Update query strings and write to Log)
OnInformation,blablabla,blablabla,Update query strings and write to Log,{BB714A61-42A6-4156-9DCA-8C41272E8849},{B532673B-60A2-4BCA-A427-C2559608B9E3},6/27/2013 3:05:32 PM,6/27/2013 3:05:32 PM,0,0x,0081782220
Shouldnt both strings "Order#" and "Processing Order#" show up on the same line ?