]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/log/CustomLog.cc
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / log / CustomLog.cc
index 2f5f4b78390d36298c0a6bcd6f555d8ebb7c5053..d829b00faa95fe693e3f17158aacf2b48302a3f0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -7,5 +7,12 @@
  */
 
 #include "squid.h"
-#include "CustomLog.h"
+#include "log/CustomLog.h"
+#include "log/File.h"
+
+bool
+CustomLog::usesDaemon() const
+{
+    return (filename && strncmp(filename, "daemon:", 7) == 0);
+}