MacTimeLog icon indicating copy to clipboard operation
MacTimeLog copied to clipboard

Make more things configurable in Preferences

Open infotexture opened this issue 15 years ago • 4 comments

  • Specify log file location.
    (use something other than ~/Library/Application Support/MacTimeLog/log.txt)
  • Honor system date & time formats from Language & Text prefs.
    Allow user to select [short|medium|long|full] formats in MacTimeLog prefs.
    (For example, use short (ISO-8601) format in Log, but "Your working day started on full".)

infotexture avatar Dec 03 '09 11:12 infotexture

  1. Do you want to use multiple logs? Or do you want it to be easy accessible ?
  2. This is good idea, need to think about best way of implementing it.

Thank you for good suggestions!

artynusov avatar Dec 04 '09 08:12 artynusov

Regarding 1, I'm more interested in being able to store the file elsewhere (perhaps for version control). I don't see an immediate need for multiple logs, but others might.

Regarding 2, I think it makes sense to use ISO 8601 as the default format for timestamps in the log, since the [YYYY]-[MM]-[DD] [hh]:[mm] can be easily sorted, whereas the current default format cannot. However, I'm sure many users would appreciate the ability to change this setting, and since they've presumably already configured their system with their preferred settings, it would be nice to pick those up.

Maybe add a pref that reads Timestamp format: [short|medium|long|full] with a link to the system Language & Text prefs.

infotexture avatar Dec 04 '09 14:12 infotexture

  1. Clear, makes more sense now.
  2. Log already sorted, but you right, some users may want to use different format.

artynusov avatar Dec 06 '09 09:12 artynusov

Yes, within MacTimeLog, entries are currently sorted as they are created, since lines are appended to the end of the file, but if entry lines are run through the UNIX sort command by an external process, the current date format yields undesirable results, as the lines are sorted by the days only, ignoring month, year, or time.

In this case,

12-31-2008 12:00   Client :: The First Task
01-01-2009 12:00   Client :: The Second Task

becomes:

01-01-2009 12:00   Client :: The Second Task
12-31-2008 12:00   Client :: The First Task

Whereas ISO 8601 [YYYY]-[MM]-[DD] [hh]:[mm] format sorts as expected.

infotexture avatar Dec 16 '09 12:12 infotexture