Skip to content

Instantly share code, notes, and snippets.

@mitkot
Created December 23, 2015 23:19
Show Gist options
  • Save mitkot/f2c8dad2ab8e02186e8a to your computer and use it in GitHub Desktop.
Save mitkot/f2c8dad2ab8e02186e8a to your computer and use it in GitHub Desktop.
AppendLog(ruby)
require "time"
def AppendLog(f)
f.print Time.now.strftime("%Y-%m-%d %H:%M:%S.%6N")+"\n"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment