# Strange parsing of custom log messages

**URL:** https://www.finalbuilder.com/forums/t/strange-parsing-of-custom-log-messages/6001
**Category:** Bugs
**Created:** [October 14, 2015, 8:46am UTC](https://www.finalbuilder.com/forums/t/strange-parsing-of-custom-log-messages/6001 "2015-10-14T08:46:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kay.zumbusch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kay.zumbusch](https://www.finalbuilder.com/forums/u/kay.zumbusch)
#### Post date: [October 14, 2015, 8:46am UTC](https://www.finalbuilder.com/forums/t/strange-parsing-of-custom-log-messages/6001/1 "2015-10-14T08:46:39Z")

</div>

Hi guys,  
  
I just encountered a strange behavior using custom log messages. I wrote a C# console application to set the deploy directory for the binaries created by our CI build. The target directory is  
  
\srv016\ci\_deploy\DevBuilds\nightly  
  
Therefore I print  
  
@@continua[setVariable name=‘DeployDirectory’ value=’\srv016\ci\_deploy\DevBuilds\nightly’]  
  
to the console of that application. It seems that the “\n” in this path is evaluated as a new line character as the step to create the directory fails with this error message:  
  
5:26:14 AM&nbsp;&nbsp; &nbsp;Create Deploy Directory  
5:26:14 AM&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Failed to create directory at path ‘\srv016\ci\_deploy\DevBuilds  
ightly\DevBuilds  
ightly’. Illegal characters: [  
] in path. Parameter name: \srv016\ci\_deploy\DevBuilds  
ightly\DevBuilds  
ightly  
  
As you can see only the \n was converted and even the \ was not converted to a single backslash.  
  
Our environment:  
  
Windows Server 2012 R2  
ContinuaCI 1.7.0.102  
  
Regards  
  
Kay Zumbusch

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [October 14, 2015, 9:10am UTC](https://www.finalbuilder.com/forums/t/strange-parsing-of-custom-log-messages/6001/2 "2015-10-14T09:10:11Z")

</div>

Hi Kay   
  
This was fixed in in the beta version recently. Backslashes need to be escaped, so \ becomes \.   
  
In the beta, this will work :   
  
@@continua[setVariable name=‘DeployDirectory’ value=’\\srv016\ci\_deploy\DevBuilds\nightly’]   
  
Here’s the change history for the beta, which is very close to being released.   
  
[https://www.finalbuilder.com/downloads/continuaci/continuaci-version-history-v1.7.1](https://www.finalbuilder.com/downloads/continuaci/continuaci-version-history-v1.7.1)

---

<div class="post-metadata">

### Author: ![kay.zumbusch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kay.zumbusch](https://www.finalbuilder.com/forums/u/kay.zumbusch)
#### Post date: [October 14, 2015, 11:38am UTC](https://www.finalbuilder.com/forums/t/strange-parsing-of-custom-log-messages/6001/3 "2015-10-14T11:38:23Z")

</div>

Hi Vincent,   
  
 thanks for the update. We’ll try upgrading to 1.7.1 as soon as it is released. For now we will add an underscore in front of “nightly” to work around the problem.   
  
 Regards   
  
 Kay Zumbusch
