WARNING LocalSite.cfg could not be found (This is normal for a new installation)
This Foswiki is running using a bootstrap configuration worked out by detecting the layout of the installation. To complete the bootstrap process you should either:
  • Restore the missing LocalSite.cfg from a backup, or
  • Complete the new Foswiki installation:

You have been logged in as a temporary administrator. Any requests made to this Foswiki will be treated as requests made by an administrator with full rights Your temporary administrator rights will "stick" until you've logged out from this session.

PerlDoc

See PublishedAPI for packages intended to be used by Plugin and Contrib authors, or browse all packages.
See also Developing plugins, Developer's Bible, Technical Overview


Parent package: Foswiki::Logger
Child packages:

SMELL / FIX / TODO count: 1

internal package Foswiki::Logger::PlainFile is a Foswiki::Logger

Plain file implementation of the Foswiki Logger interface. Mostly compatible with TWiki (and Foswiki 1.0.0) log files, except that dates are recorded using ISO format, and include the time, and it dies when a log can't be written (rather than printing a warning).

This logger implementation maps groups of levels to a single logfile, viz.
  • debug messages are output to $Foswiki::cfg{Log}{Dir}/debug.log
  • info messages are output to $Foswiki::cfg{Log}{Dir}/events.log
  • warning, error, critical, alert, emergency messages are output to $Foswiki::cfg{Log}{Dir}/error.log.
  • error, critical, alert, and emergency messages are also written to standard error (the webserver log file, usually)

ObjectMethod log($level, @fields)

See Foswiki::Logger for the interface.

ObjectMethod eachEventSince($time, \@levels, $version) → $iterator

  • $time - a time in the past
  • \@levels - log levels to return events for. Individual level or array reference.
  • $version - Version 1 of API returns a hash instead of an array.
  • $lock - boolean switch to enable locking, off by default

See Foswiki::Logger for the interface.

SMELL: Expand should not be needed, except if bin/configure tries
Topic revision: r1 - 15 Mar 2026, UnknownUser
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback