### Navigation

- index
- modules |
- next |
- previous |
- pywws 14.05.dev1208 documentation »
- Python programs and modules »

# pywws.livelogdaemon

Run ‘live logging’ as a UNIX daemon.

This script can also be run with the `pywws-livelog-daemon` command.

    usage: python -m pywws.livelogdaemon [options] data_dir log_file start|stop|restart
    options are:
     -h      or --help        display this help
     -p file or --pid file    store pid in 'file' (default /run/lock/pywws.pid)
     -v      or --verbose     increase amount of logging messages
    data_dir is the root directory of the weather data (e.g. ~/weather/data)
    log_file is a file to write logging to, e.g. /var/log/pywws.log

Requires the python-daemon library.

If you get a “function() argument 1 must be code, not str” error, try installing python-daemon from PyPI instead of your Linux repos.

For more information on ‘live logging’ see How to set up ‘live’ logging with pywws.

Functions

`ApplicationLogger`(verbose[, logfile]) |
`LiveLog`(data_dir) |
`main`([argv]) |

Classes

`DaemonRunner` |
`Runner`(data_dir, action, files_preserve, ...) |

class `pywws.livelogdaemon.``Runner`(data_dir, action, files_preserve, pid_file)
  `parse_args`(argv=None)
  `run`()

`pywws.livelogdaemon.``main`(argv=None)

Comments or questions? Please subscribe to the pywws mailing list http://groups.google.com/group/pywws and let us know.

### Navigation

- index
- modules |
- next |
- previous |
- pywws 14.05.dev1208 documentation »
- Python programs and modules »