summaryrefslogtreecommitdiff
path: root/FreeFileSync/Source/base/error_log.h
diff options
context:
space:
mode:
Diffstat (limited to 'FreeFileSync/Source/base/error_log.h')
-rwxr-xr-xFreeFileSync/Source/base/error_log.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/FreeFileSync/Source/base/error_log.h b/FreeFileSync/Source/base/error_log.h
deleted file mode 100755
index a27e423b..00000000
--- a/FreeFileSync/Source/base/error_log.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// *****************************************************************************
-// * This file is part of the FreeFileSync project. It is distributed under *
-// * GNU General Public License: https://www.gnu.org/licenses/gpl-3.0 *
-// * Copyright (C) Zenju (zenju AT freefilesync DOT org) - All Rights Reserved *
-// *****************************************************************************
-
-#ifndef ERROR_LOG_H_89734181783491324134
-#define ERROR_LOG_H_89734181783491324134
-
-#include <cassert>
-#include <zen/file_io.h>
-#include <zen/time.h>
-#include "ffs_paths.h"
-
-
-namespace fff
-{
-//write error message to a file (even with corrupted stack)- call in desperate situations when no other means of error handling is available
-void logFatalError(const std::string& msg); //noexcept
-
-
-
-
-
-
-
-
-
-//##################### implementation ############################
-inline
-void logFatalError(const std::string& msg) //noexcept
-{
- using namespace zen;
-
- assert(false); //this is stuff we like to debug
- const std::string logEntry = "[" + formatTime<std::string>(FORMAT_DATE) + " " + formatTime<std::string>(FORMAT_TIME) + "] " + msg;
- try
- {
- saveBinContainer(getConfigDirPathPf() + Zstr("LastError.log"), logEntry, nullptr /*notifyUnbufferedIO*/); //throw FileError
- }
- catch (FileError&) {}
-}
-}
-
-#endif //ERROR_LOG_H_89734181783491324134
bgstack15