#include "list.h"
#include "log.h"
+lxc_log_define(lxc_autostart_ui, lxc);
+
static int my_parser(struct lxc_arguments* args, int c, char* arg)
{
switch (c) {
if (lxc_arguments_parse(&my_args, argc, argv))
return 1;
+ if (lxc_log_init(my_args.name, my_args.log_file, my_args.log_priority,
+ my_args.progname, my_args.quiet, my_args.lxcpath[0]))
+ return 1;
+ lxc_log_options_no_override();
+
count = list_defined_containers(NULL, NULL, &containers);
if (count < 0)
#include "log.h"
#include "arguments.h"
-lxc_log_define(lxc_cgroup_ui, lxc_cgroup);
+lxc_log_define(lxc_cgroup_ui, lxc);
static int my_checker(const struct lxc_arguments* args)
{
#include "conf.h"
#include "state.h"
-lxc_log_define(lxc_clone, lxc);
+lxc_log_define(lxc_clone_ui, lxc);
/* we pass fssize in bytes */
static uint64_t get_fssize(char *s)
#include "arguments.h"
#include "commands.h"
-lxc_log_define(lxc_console_ui, lxc_console);
+lxc_log_define(lxc_console_ui, lxc);
static char etoc(const char *expr)
{
#include "arguments.h"
#include "utils.h"
-lxc_log_define(lxc_create, lxc);
+lxc_log_define(lxc_create_ui, lxc);
static uint64_t get_fssize(char *s)
{
#include "arguments.h"
#include "utils.h"
-lxc_log_define(lxc_destroy, lxc);
+lxc_log_define(lxc_destroy_ui, lxc);
static int my_parser(struct lxc_arguments* args, int c, char* arg)
{
#include "start.h"
#include "utils.h"
-lxc_log_define(lxc_execute_ui, lxc_execute);
+lxc_log_define(lxc_execute_ui, lxc);
static struct lxc_list defines;
#include "arguments.h"
-lxc_log_define(lxc_freeze_ui, lxc_cgroup);
+lxc_log_define(lxc_freeze_ui, lxc);
static const struct option my_longopts[] = {
LXC_COMMON_OPTIONS
#include "commands.h"
#include "arguments.h"
+lxc_log_define(lxc_info_ui, lxc);
+
static bool ips;
static bool state;
static bool pid;
#include "monitor.h"
#include "arguments.h"
-lxc_log_define(lxc_monitor_ui, lxc_monitor);
+lxc_log_define(lxc_monitor_ui, lxc);
static bool quit_monitord;
#include "arguments.h"
#include "utils.h"
-lxc_log_define(lxc_snapshot, lxc);
+lxc_log_define(lxc_snapshot_ui, lxc);
static char *newname;
static char *snapshot;
#define OPT_SHARE_IPC OPT_USAGE+2
#define OPT_SHARE_UTS OPT_USAGE+3
-lxc_log_define(lxc_start_ui, lxc_start);
+lxc_log_define(lxc_start_ui, lxc);
static struct lxc_list defines;
#define OPT_NO_LOCK OPT_USAGE+1
#define OPT_NO_KILL OPT_USAGE+2
+lxc_log_define(lxc_stop_ui, lxc);
+
static int my_parser(struct lxc_arguments* args, int c, char* arg)
{
switch (c) {
#include "log.h"
#include "arguments.h"
-lxc_log_define(lxc_unfreeze_ui, lxc_cgroup);
+lxc_log_define(lxc_unfreeze_ui, lxc);
static const struct option my_longopts[] = {
LXC_COMMON_OPTIONS
#include "log.h"
#include "arguments.h"
-lxc_log_define(lxc_wait_ui, lxc_monitor);
+lxc_log_define(lxc_wait_ui, lxc);
static int my_checker(const struct lxc_arguments* args)
{