<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 27.08.2014 08:12, John Meinel wrote:<br>
</div>
<blockquote cite="mid:CAHE3fn49EP91hQSdwkO2r9bWnjze2JOsSMp3dn+bX0qUmt5scw@mail.gmail.com" type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>... </div>
<blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">> I may be misremembering, but at the time that was the preferred approach. But<br>
> then someone said Go's inbuilt syslog APIs were broke, so the compromise was to<br>
> use rsyslog forwarding.<br>
><br>
> Does anyone else recall why it may have been said that Go's syslog APIs are broken?<br>
<br>
</div>
The reconnect logic is broken in all the version's of the syslog api.<br>
The general consensus is that package is a mistake and should not be<br>
used.<br>
<div class="im HOEnZb"><br>
</div>
</blockquote>
<div><br>
</div>
<div>I believe there is also an issue where we couldn't format the logs the way we wanted to. (The prefix/timestamp are added by the package and cannot be configured).</div>
</div>
</div>
</div>
</blockquote>
<br>
<br>
I think that may have been in an older version of Go. For example:<br>
<br>
<a class="moz-txt-link-freetext" href="http://paste.ubuntu.com/8158001/">http://paste.ubuntu.com/8158001/</a><br>
<br>
will appear in syslog as:<br>
<br>
Aug 27 13:01:36 rossak testing[3812]: hello<br>
<br>
An example of log output streamed to all-machines.log using the syslog package:<br>
<br>
unit-vanilla2-0[1424]: 2014-08-27 09:34:14 INFO juju.worker.uniter uniter.go:324 deploying charm "local:win2012hvr2/vanilla2-0"<br>
unit-vanilla2-0[1424]: 2014-08-27 09:34:14 DEBUG juju.worker.uniter.charm manifest_deployer.go:126 preparing to deploy charm "local:win2012hvr2/vanilla2-0"<br>
unit-vanilla2-0[1424]: 2014-08-27 09:34:14 DEBUG juju.worker.uniter.charm manifest_deployer.go:102 deploying charm "local:win2012hvr2/vanilla2-0"<br>
unit-vanilla2-0[1424]: 2014-08-27 09:34:14 DEBUG juju.worker.uniter.filter filter.go:583 no new charm event<br>
<br>
I have not looked at the reconnect part though.<br>
<br>
<br>
Gabriel<br>
<br>
<br>
<blockquote cite="mid:CAHE3fn49EP91hQSdwkO2r9bWnjze2JOsSMp3dn+bX0qUmt5scw@mail.gmail.com" type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div><br>
</div>
<div>John</div>
<div>=:-> </div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
</blockquote>
<br>
</body>
</html>