log_printf can be called concurently (removed static buffer)
[psensor.git] / src / lib / log.h
index 20c6229..cf4fcd3 100644 (file)
@@ -27,10 +27,13 @@ enum log_level {
        LOG_DEBUG
 };
 
-void log_open(const char *path, int lvl);
+void log_open(const char *path);
 
-void log_puts(int lvl, const char *msg);
+void log_printf(int lvl, const char *fmt, ...);
 
 void log_close();
 
+/* level of the log file. */
+extern int log_level;
+
 #endif