Typedefs | Functions

libvmtools/fileLogger.c File Reference

#include "vmtoolsInt.h"
#include <stdio.h>
#include <string.h>
#include <glib/gstdio.h>
#include <unistd.h>
#include "vm_assert.h"
#include "vm_atomic.h"
Include dependency graph for fileLogger.c:

Typedefs

typedef struct FileLoggerData FileLoggerData

Functions

LogHandlerDataVMFileLoggerConfig (const gchar *defaultDomain, const gchar *domain, const gchar *name, GKeyFile *cfg)

Detailed Description

Logger that uses file streams and provides optional log rotation.


Function Documentation

LogHandlerData* VMFileLoggerConfig ( const gchar *  defaultDomain,
const gchar *  domain,
const gchar *  name,
GKeyFile *  cfg 
)

Configures a new file logger based on the given configuration.

Parameters:
[in] defaultDomain Unused.
[in] domain Name of log domain.
[in] name Name of log handler.
[in] cfg Configuration data.
Returns:
The file logger data, or NULL on failure.