aboutsummaryrefslogtreecommitdiffstats
path: root/src/Log.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Log.hxx')
-rw-r--r--src/Log.hxx39
1 files changed, 2 insertions, 37 deletions
diff --git a/src/Log.hxx b/src/Log.hxx
index 920a8d8a3..15077e374 100644
--- a/src/Log.hxx
+++ b/src/Log.hxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2013 The Music Player Daemon Project
+ * Copyright (C) 2003-2014 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -20,47 +20,12 @@
#ifndef MPD_LOG_HXX
#define MPD_LOG_HXX
+#include "LogLevel.hxx"
#include "Compiler.h"
-#ifdef WIN32
-#include <windows.h>
-/* damn you, windows.h! */
-#ifdef ERROR
-#undef ERROR
-#endif
-#endif
-
class Error;
class Domain;
-enum class LogLevel {
- /**
- * Debug message for developers.
- */
- DEBUG,
-
- /**
- * Unimportant informational message.
- */
- INFO,
-
- /**
- * Interesting informational message.
- */
- DEFAULT,
-
- /**
- * Warning: something may be wrong.
- */
- WARNING,
-
- /**
- * An error has occurred, an operation could not finish
- * successfully.
- */
- ERROR,
-};
-
void
Log(const Domain &domain, LogLevel level, const char *msg);