# Can I write to the FB log from within script?

**URL:** https://www.finalbuilder.com/forums/t/can-i-write-to-the-fb-log-from-within-script/392
**Category:** Discussion
**Created:** [March 12, 2007, 7:37am UTC](https://www.finalbuilder.com/forums/t/can-i-write-to-the-fb-log-from-within-script/392 "2007-03-12T07:37:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![paulstock](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/paulstock/32/45_2.png) [@paulstock](https://www.finalbuilder.com/forums/u/paulstock)
#### Post date: [March 12, 2007, 7:37am UTC](https://www.finalbuilder.com/forums/t/can-i-write-to-the-fb-log-from-within-script/392/1 "2007-03-12T07:37:46Z")

</div>

Can I write to the Build Log directly from within a script?  
  
It would help if I could write certain values to the build log as the script is run so that I could see exactly what the script did later.  
  
Thanks  
  
Paul

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [March 13, 2007, 12:16pm UTC](https://www.finalbuilder.com/forums/t/can-i-write-to-the-fb-log-from-within-script/392/2 "2007-03-13T12:16:38Z")

</div>

Hi Paul,  
  
If you’re using an action script event (ie the script editor in FinalBuilder), you can send log messages like this:  
  
VBScript: Action.SendLogMessage "My Log Message Goes Here"  
JScript: Action.SendLogMessage(“My Log Message Goes Here”);  
  
  
If you’re using Action Studio, the method from a custom action is Context.SendMessage()  
  
Regards,  
  
Angus

---

<div class="post-metadata">

### Author: ![paulstock](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/paulstock/32/45_2.png) [@paulstock](https://www.finalbuilder.com/forums/u/paulstock)
#### Post date: [March 13, 2007, 3:48am UTC](https://www.finalbuilder.com/forums/t/can-i-write-to-the-fb-log-from-within-script/392/3 "2007-03-13T03:48:39Z")

</div>

Perfect!&nbsp; Thanks so much for your help.  
  
Knew there had to be a way to do it, but missed it in the documentation.  
  
Thanks again.

---

<div class="post-metadata">

### Author: ![stevage](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/bc8723/32.png) [@stevage](https://www.finalbuilder.com/forums/u/stevage)
#### Post date: [March 14, 2007, 3:34am UTC](https://www.finalbuilder.com/forums/t/can-i-write-to-the-fb-log-from-within-script/392/4 "2007-03-14T03:34:41Z")

</div>

If you want to log variable values, you can also use the aptly-named “Log Variable Values” action 🙂  
  
Steve
