Misc. Util Docs

Overview

Reference

munin.logutil.create_logger(name=None, log_file=None, verbosity=10)[source]

Create a new Logger configured with moosecat’s defaults.

Name :A user-define name that describes the logger
Returns:A new logger .

munin.caching.check_or_mkdir(path)[source]

Check if path does exist, if not mkdir it.

munin.caching.get_cache_path(extra_name=None)[source]

Tries to find out the XDG caching path of your system.

This is done preferrably with PyXDG. If it’s not installed, we try the XDG_CACHE_HOME environment variable or default to ~/.cache/

If the path does not exist yet it will be created for you.

Parameters:extra_name – Extra path component to append to the path (or None).
Returns:The full path, e.g.: /home/user/.cache/libmunin/<extra_name>

Commonly utility functions used througout.

Project Versions

Table Of Contents

Previous topic

Session Handling

Next topic

ToDo List

This Page