Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-10-2006, 12:56 PM
Joel_W Joel_W is online now
Registered User
 
Join Date: 03-21-2006
Location: Seattle, WA
Posts: 8
Question regarding logging

I don't know if this is possible or not, but I would like to be able to filter some of the failstep_output of a .NET compile. I am setting up a failure step to send a text message to my phone when the build fails. Instead of having all of the output included in the compile, I would like just the actual error. Does anyone know if there is a way to do this?
Reply With Quote
  #2  
Old 07-10-2006, 05:02 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
Sure.

1) Filter the output as needed. It's available in the FAILSTEP_OUTPUT macro. How you would filter would depend on what and how you want to filter. The following VBScript code in a Run Script step gives a template:

output = vbld_AllMacros()("FAILSTEP_OUTPUT").Value
' filter the output as needed
vbld_TempMacros.Add "FILTERED_OUTPUT", output

2) Include the filtered output (%FILTERED_OUTPUT% in the above sample) in your message.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 04:09 AM.


Copyright © 1999-2023 Kinook Software, Inc.