python-fhs
Python module for using the FHS and XDG basedir paths.
Loading...
Searching...
No Matches

◆ write_log()

fhs.write_log (   name = None,
  packagename = None 
)

Open a log file for writing.

There are not many options here; logfiles are always opened for append, never read, and never removed by the program. Log directories can be created by specifying a directory as part of the name.

Parameters
nameLog filename.
packagenameOverride the packagename.
Returns
The logfile, opened in text append mode.

Definition at line 1115 of file fhs.py.