Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to find an application or an extension for an editor that allows me to record phases of a process by entering status messages. Ideally, the output would be a logfile with timestamps for each message that I've entered.

Nowadays I have to test fairly complicated websites and I would like to be able to exactly know what I do in each step, so I would like to submit a status message on each step I do, much like a commit message in version control systems.

Do you know anything similar?

share|improve this question
    
What are you trying to do? It seems a very bad idea to log EVERY line entered in an editor, but knowing the source problem can help to suggest a solution. –  enzotib Aug 12 '11 at 6:57
    
@enzotib sorry, I've tried to clarify the question a bit. –  Scorchio Aug 12 '11 at 7:02
    
Would having an editor bind a command to insert the date do? –  N.N. Aug 12 '11 at 7:38
    
That would be one way, but finding a dedicated solution would be better. –  Scorchio Aug 12 '11 at 8:42

3 Answers 3

up vote 3 down vote accepted

Perhaps gtimelog does what you're after:

enter image description here

It is available in Ubuntu as the gtimelog package:

sudo apt-get install gtimelog
share|improve this answer
    
Yeah, this is excellent. I wanted this exactly. –  Scorchio Aug 12 '11 at 9:23

Gedit as a Insert Date/Time plugin. You can configure it for a given format and to not ask confirmation. You should call it explicitly from Edit menu, though.

enter image description here

share|improve this answer
    
Yes, it's okay for inserting the date, but I would like to have a dedicated solution for this - the more comfortable the better. I will spend quite a bit of time with this tool... –  Scorchio Aug 12 '11 at 7:18

gtimelog looks very nice, this is would I would have done:

#!/bin/bash
echo $(date) "$@" >> "$USER/logfile"

if you save this in /usr/bin/log or in ~/bin/log you can just type in

log some message

and will end up with

Fr 12. Aug 11:30:50 CEST 2011 some message

in the file.

share|improve this answer
    
Yes of course. I've started this question to save myself from playing around with Python, because I wouldn't stop myself from adding features and such :D –  Scorchio Aug 12 '11 at 9:35
    
Sure, one gets carried away pretty quickly … –  queueoverflow Aug 12 '11 at 21:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.