+
+ /* Log to STDERR */
+ fprintf(stderr, "guacd[%i]: ERROR: ", getpid());
+ vfprintf(stderr, format, args);
+ fprintf(stderr, "\n");
+
+}
+
+void guacd_log_info(const char* format, ...) {
+ va_list args;
+ va_start(args, format);
+ vguacd_log_info(format, args);
+ va_end(args);
+}
+
+void guacd_log_error(const char* format, ...) {
+ va_list args;
+ va_start(args, format);
+ vguacd_log_error(format, args);
+ va_end(args);
+}
+
+void guacd_client_log_info(guac_client* client, const char* format,
+ va_list args) {
+ vguacd_log_info(format, args);
+}
+
+void guacd_client_log_error(guac_client* client, const char* format,
+ va_list args) {
+ vguacd_log_error(format, args);