Time in log files

ZaggyZaggy NullPointerExceptionThe Netherlands Join Date: 2003-12-10 Member: 24214Forum Moderators, NS2 Playtester, Reinforced - Onos, Subnautica Playtester
<div class="IPBDescription">Can it be added by lua?</div>My logs currently look like this:

<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->Idan died
Client disconnected (<ip>) Quit
Auto-team balance enabled
Chat All - Admin: Fri Dec 21 14:40:01 CET 2012
Chat All - Admin: Admin contact: zaggynl, info: <a href="http://747.internetuplink.com" target="_blank">http://747.internetuplink.com</a>
Client disconnected (<ip>) Quit
Aza(Neo) died

OOM | Utsuru died
Client connected (<ip>)
Client Authed. Steam ID: <ID>
Suavé connected.
Commander Ashton died

Aza(Neo) died
ro0n died<!--QuoteEnd--></div><!--QuoteEEnd-->

Any way to add an irssi like date/time in front of every line?

Comments

  • VitdomVitdom Join Date: 2012-04-30 Member: 151345Members, Reinforced - Supporter, Reinforced - Silver, Reinforced - Gold, Reinforced - Diamond, Reinforced - Shadow, WC 2013 - Shadow
    I don't think so. As I understand it, there is no specific logging Lua code, it is in the engine.

    You can always do something which prints out the current time every once in a while, but it looks like you already have that.
  • CoTTonCoTTon Join Date: 2005-02-28 Member: 42773Members
    I seriously would like to have a timestamp too-

    but Brian's official word is : "I don't think we want to add a time stamp for each line of the log as we are trying to keep the log somewhat clean looking."

    but yeah- having a timestamp would really help server operators.
  • RothgarRothgar Join Date: 2009-11-13 Member: 69372Members
    <!--quoteo(post=2049695:date=Dec 22 2012, 05:41 PM:name=CoTTon)--><div class='quotetop'>QUOTE (CoTTon @ Dec 22 2012, 05:41 PM) <a href="index.php?act=findpost&pid=2049695"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I seriously would like to have a timestamp too-

    but Brian's official word is : "I don't think we want to add a time stamp for each line of the log as we are trying to keep the log somewhat clean looking."

    but yeah- having a timestamp would really help server operators.<!--QuoteEnd--></div><!--QuoteEEnd-->

    Er, why not like an option of -timestamp or similar?
  • DghelneshiDghelneshi Aims to surpass Fana in post edits. Join Date: 2011-11-01 Member: 130634Members, Squad Five Blue, Reinforced - Shadow
    edited December 2012
    The only thing you could do is make a mod that prints out the current time to the console every few seconds or so to at least have an estimate or write a program that constantly checks for changes in log.txt and writes a time stamped log into a separate file.
  • endarendar Join Date: 2010-07-27 Member: 73256Members, Squad Five Blue
    <!--quoteo(post=2049695:date=Dec 22 2012, 05:41 PM:name=CoTTon)--><div class='quotetop'>QUOTE (CoTTon @ Dec 22 2012, 05:41 PM) <a href="index.php?act=findpost&pid=2049695"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I seriously would like to have a timestamp too-

    but Brian's official word is : "I don't think we want to add a time stamp for each line of the log as we are trying to keep the log somewhat clean looking."

    but yeah- having a timestamp would really help server operators.<!--QuoteEnd--></div><!--QuoteEEnd-->

    That's disappointing, I just assumed that it was still coming.
  • ZaggyZaggy NullPointerException The Netherlands Join Date: 2003-12-10 Member: 24214Forum Moderators, NS2 Playtester, Reinforced - Onos, Subnautica Playtester
    Sad to hear this will not be added.
    An option to add this would be great!
Sign In or Register to comment.