The log message object is an item in the Log Messages Collection which provides access to the properties of a build log message. e.g. $Build.ErrorAndWarningMessages.First().Type$



NameDescriptionTypeUsage Example
ActionNameThe name of the action that the message is logged for.String$Build.ErrorAndWarningLogMessages.First().ActionName$"FinalBuilder  [%FB_Script%]"
ExpandedActionNameThe expanded name of the action that the message is logged for.String$Build.TailLogMessages.First().ExpandedActionName$"FinalBuilder [$Source.MyRepository$\\build\\fb_script.fbz7]"
IdThe id of the message.Integer$Build.ErrorAndWarningLogMessages.Last().Id$123
LineThe message details as a line of text.String$Build.TailLogMessages.First().Line$"Build | FinalBuilder [MyRepository] | Error | Error Message | "2/07/2019 1:25:54 PM"
StageNameThe name of the stage that the message is logged for.String$Build.ErrorAndWarningLogMessages.Last().StageName$"Build"
TextThe text of the message.String$Build.TailLogMessages.Last().Text$"Message here"
TimeStampThe date and time this message was logged.DateTime$Build.ErrorAndWarningLogMessages.First().TimeStamp$"2/07/2019 1:25:54 PM"
TypeThe type of message (information, warning or error).String$Build.TailLogMessages.Last().Type$"Warning"



  • No labels