Go to the first, previous, next, last section, table of contents.


rootLogString

Function: rootLog { "sometext\n" -> }
file: job.t
package: muf
status: alpha

The rootLogString function appends the given text to the server log, which is specified via the --logfile=myfile.log commandline switch.

An error will be signaled if @$s.actingUser is not root-privileged.

There is also a muf:l, function intended to be called by non-root users: If .muq$s.allowUserLogging is non-nil, this will also write to the logfile. Otherwise, it silently does nothing.

Note that no quotas are applied to the logfile, hence (for example) if you log some user-triggerable activity, you open yourself to a disk-flood attack: a hostile user can attempt to trigger enough logging to fill the host disk partition, preventing expansion of the db files and thus crashing or halting the server.

See section ]rootLogPrint.


Go to the first, previous, next, last section, table of contents.