Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
$Stage.AgentName$
$Build.ErrorAndWarningLogMessages.First().ActionName$"FinalBuilder"
ExpandedActionNameThe expanded name of the action that the message is logged for.String
$Stage.Elapsed$
$Build.TailLogMessages.First().ExpandedActionName$"FinalBuilder($Workspace$)"
IdThe id of the message.Integer
$Stage.Finished$
$Build.ErrorAndWarningLogMessages.Last().Id$123
LineThe message details as a line of text.String
$Stage.HasWarnings$
$Build.TailLogMessages.First().Line$"FinalBuilder, FinalBuilder(), 123, ... , warning"
StageNameThe name of the stage that the message is logged for.String
$Stage.IsError$
$Build.ErrorAndWarningLogMessages.Last().StageName$"Build"
TextThe text of the message.String
$Stage.IsFailure$
$Build.TailLogMessages.Last().Text$"Message here"
TimeStampThe date and time this message was logged.DateTime
$Stage.IsSpecial$
$Build.ErrorAndWarningLogMessages.First().TimeStamp$"9/11/2018 10:44:54"
TypeThe type of message (information, warning or error).String
$Stage.IsSuccessful$
$Build.TailLogMessages.Last().Type$"Warning"