create new tag
, view all tags

Feature Proposal: Logging in GMT


If you have a federation of TWiki sites as mentioned on RepositoryForSiteAndWebMetadata, you may need to process log files of all the sites. In that case, all the sites using the same time zone in logs makes things easier.

Description and Documentation

Initially I planned to introduce a new configuration option $TWiki::cfg{LogTimeZone} to specify a time zone. But after the discussion below, simply switching from servertime to GMT is enough.
Introducing $TWiki::cfg{LogTimeZone} (optional) and if it's set, it's supplied as the third argument of the following line in TWiki::_writeReport().
my $time = TWiki::Time::formatTime( time(), '$year$mo', 'servertime');



WhatDoesItAffect: Install


-- Contributors: HideyoImazu - 2012-08-28


Sensible enhancement. How does the log line look like if enabled?

-- PeterThoeny - 2012-08-29

Or as I mentioned in ReadOnlyAndMirrorWebs, how about always using GMT in log files? With this we would not need an additional flag. This is a spec change, but I do not think this will break any existing apps.

-- PeterThoeny - 2012-08-29

My goal is to use GMT in log files. I prefer switching to GMT from servertime without introducing $TWiki::cfg{LogTimeZone} because that's simpler and cleaner.

-- HideyoImazu - 2012-08-29

Accepted by JerusalemReleaseMeeting2012x08x31.

-- PeterThoeny - 2012-08-31

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2012-09-13 - HideyoImazu
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.