<div dir="ltr">Hello,<div>as per <a href="http://unix.stackexchange.com/questions/26728/prepending-a-timestamp-to-each-line-of-output-from-a-command">http://unix.stackexchange.com/questions/26728/prepending-a-timestamp-to-each-line-of-output-from-a-command</a></div><div>you can use moreutils's ts to prepend timestamp to your commands:</div><div><br></div><div> <span class="inbox-inbox-pln" style="font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace,sans-serif;white-space:inherit;line-height:1.5;margin:0px;padding:0px;border:0px;color:rgb(48,51,54);background-color:rgb(239,240,241)"> scons <whatever></span><span class="inbox-inbox-pun" style="font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace,sans-serif;white-space:inherit;line-height:1.5;margin:0px;padding:0px;border:0px;color:rgb(48,51,54);background-color:rgb(239,240,241)">|</span><span class="inbox-inbox-pln" style="font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace,sans-serif;white-space:inherit;line-height:1.5;margin:0px;padding:0px;border:0px;color:rgb(48,51,54);background-color:rgb(239,240,241)"> ts </span><span class="inbox-inbox-str" style="font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace,sans-serif;white-space:inherit;line-height:1.5;margin:0px;padding:0px;border:0px;color:rgb(125,39,39);background-color:rgb(239,240,241)">'[%Y-%m-%d %H:%M:%S]'</span></div></div><br><div class="gmail_quote"><div dir="ltr">Le lun. 12 sept. 2016 à 21:36, Long Vu <<a href="mailto:long.vu@intelerad.com">long.vu@intelerad.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Vasily !  Not what we were looking for but could fill our needs.<br>
<br>
I am still hoping someone could propose an option (ex: in<br>
BuildmasterConfig) that we could turn on for all builders so we can<br>
have timestamps for anything, not just scons build step.<br>
<br>
<br>
On Mon, Sep 12, 2016 at 2:06 PM, Vasily <<a href="mailto:just.one.man@yandex.ru" target="_blank">just.one.man@yandex.ru</a>> wrote:<br>
> Hi,<br>
><br>
> Just try --debug=time SCons option ;-)<br>
><br>
> Thanks,<br>
> Vasily<br>
><br>
> 12 сент. 2016 г. 20:01 пользователь "Long Vu" <<a href="mailto:long.vu@intelerad.com" target="_blank">long.vu@intelerad.com</a>><br>
> написал:<br>
>><br>
>> Hi,<br>
>><br>
>> Our buildbot calls scons which then calls the various commands that<br>
>> made up the build.<br>
>><br>
>> We want to diagnose slow builds, specifically which of the commands is<br>
>> hogging build time.<br>
>><br>
>> So is there a quick way to prefix timestamp on each log line collected<br>
>> by buildbot?<br>
>><br>
>> The alternative would be to modify all the scons build file in all the<br>
>> source repository to prefix the timestamp, but that would means a lot<br>
>> of commits.<br>
>><br>
>> We would prefer a centralized solution in buildbot that will also<br>
>> future proof all the new source repositories that we will add later.<br>
>><br>
>> Thanks,<br>
>><br>
>><br>
>> --<br>
>> Long Vu | Build Controller | Intelerad | +1-514-931-6222 ext. 7743<br>
>><br>
>> --<br>
>><br>
>> This email or any attachments may contain confidential or legally<br>
>> privileged information intended for the sole use of the addressees. Any<br>
>> use, redistribution, disclosure, or reproduction of this information,<br>
>> except as intended, is prohibited. If you received this email in error,<br>
>> please notify the sender and remove all copies of the message, including<br>
>> any attachments.<br>
>><br>
>> _______________________________________________<br>
>> users mailing list<br>
>> <a href="mailto:users@buildbot.net" target="_blank">users@buildbot.net</a><br>
>> <a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/mailman/listinfo/users</a><br>
>><br>
><br>
<br>
<br>
<br>
--<br>
Long Vu | Build Controller | Intelerad | +1-514-931-6222 ext. 7743<br>
<br>
--<br>
<br>
This email or any attachments may contain confidential or legally<br>
privileged information intended for the sole use of the addressees. Any<br>
use, redistribution, disclosure, or reproduction of this information,<br>
except as intended, is prohibited. If you received this email in error,<br>
please notify the sender and remove all copies of the message, including<br>
any attachments.<br>
<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@buildbot.net" target="_blank">users@buildbot.net</a><br>
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/mailman/listinfo/users</a></blockquote></div>