~ubuntu-branches/ubuntu/lucid/vzctl/lucid

« back to all changes in this revision

Viewing changes to include/logger.h

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2007-04-10 18:08:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070410180816-0uuzj9fnna7gmzxv
Tags: 3.0.16-4
Etch has been released which means that this version can be uploaded
to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *  Copyright (C) 2000-2006 SWsoft. All rights reserved.
 
2
 *  Copyright (C) 2000-2007 SWsoft. All rights reserved.
3
3
 *
4
4
 *  This program is free software; you can redistribute it and/or modify
5
5
 *  it under the terms of the GNU General Public License as published by
21
21
#include <stdio.h>
22
22
#include "types.h"
23
23
 
24
 
#define LOG_DATA        log_param g_log = {NULL, 0, 1, 0, "", 0};
 
24
#define LOG_DATA        log_param g_log = {NULL, 0, 1, 0, 0, "", 0};
25
25
 
26
26
/** Data structure for logging.
27
27
 */
30
30
        int level;              /**< maximum logging level. */
31
31
        int enable;             /**< enable/disable logging. */
32
32
        int quiet;              /**< skip logging to stdout. */
 
33
        int verbose;            /**< Console verbosity. */
33
34
        char prog[32];          /**< program name. */
34
35
        envid_t veid;
35
36
} log_param;
52
53
/** Initialize logging.
53
54
 * 
54
55
 * @param file          log file.
55
 
 * @param veid          VPS id.
 
56
 * @param veid          VE id.
56
57
 * @param enable        enable/disable logging.
57
58
 * @param level         maximum logging level.
58
59
 * @param quiet         skip logging to stdout.
66
67
void free_log();
67
68
 
68
69
void set_log_level(int level);
 
70
void set_log_verbose(int level);
69
71
 
70
72
#endif