From 4bb167c1e24dbbd5c00a97c63866ea9cffefb33f Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <github@naumov.de>
Date: Mon, 23 Mar 2020 12:37:35 +0100
Subject: [PATCH] Remove LogogSetup

---
 Applications/ApplicationsLib/LogogSetup.h     | 83 -----------------
 Applications/CLI/ogs.cpp                      |  3 -
 Applications/DataExplorer/main.cpp            |  2 +-
 .../Utils/FileConverter/ConvertSHPToGLI.cpp   |  3 -
 .../Utils/FileConverter/FEFLOW2OGS.cpp        |  4 -
 Applications/Utils/FileConverter/GMSH2OGS.cpp |  4 -
 .../Utils/FileConverter/NetCdfConverter.cpp   |  4 -
 Applications/Utils/FileConverter/OGS2VTK.cpp  |  3 -
 Applications/Utils/FileConverter/TIN2VTK.cpp  |  4 -
 .../Utils/FileConverter/TecPlotTools.cpp      |  4 -
 Applications/Utils/FileConverter/VTK2OGS.cpp  |  3 -
 Applications/Utils/FileConverter/VTK2TIN.cpp  |  4 -
 .../Utils/FileConverter/convertGEO.cpp        |  3 -
 .../generateMatPropsFromMatID.cpp             |  4 -
 Applications/Utils/GeoTools/MoveGeometry.cpp  |  3 -
 .../Utils/GeoTools/TriangulatePolyline.cpp    |  3 -
 Applications/Utils/MeshEdit/AddTopLayer.cpp   |  3 -
 ...CreateBoundaryConditionsAlongPolylines.cpp |  3 -
 .../Utils/MeshEdit/ExtractSurface.cpp         |  4 -
 .../MeshEdit/MapGeometryToMeshSurface.cpp     |  3 -
 Applications/Utils/MeshEdit/MoveMesh.cpp      |  3 -
 .../Utils/MeshEdit/NodeReordering.cpp         |  3 -
 .../Utils/MeshEdit/RemoveGhostData.cpp        | 11 +--
 .../ResetPropertiesInPolygonalRegion.cpp      |  3 -
 .../Utils/MeshEdit/UnityPreprocessing.cpp     |  3 -
 .../MeshEdit/appendLinesAlongPolyline.cpp     |  3 -
 Applications/Utils/MeshEdit/checkMesh.cpp     |  4 -
 .../Utils/MeshEdit/convertToLinearMesh.cpp    |  4 -
 .../MeshEdit/createLayeredMeshFromRasters.cpp |  4 -
 .../Utils/MeshEdit/createQuadraticMesh.cpp    |  4 -
 .../Utils/MeshEdit/editMaterialID.cpp         |  3 -
 Applications/Utils/MeshEdit/moveMeshNodes.cpp |  3 -
 Applications/Utils/MeshEdit/queryMesh.cpp     |  4 -
 .../Utils/MeshEdit/removeMeshElements.cpp     |  3 -
 Applications/Utils/MeshEdit/reviseMesh.cpp    |  4 -
 .../Utils/MeshEdit/swapNodeCoordinateAxes.cpp |  5 +-
 ...computeSurfaceNodeIDsInPolygonalRegion.cpp |  3 -
 .../constructMeshesFromGeometry.cpp           |  3 -
 .../Utils/MeshGeoTools/identifySubdomains.cpp |  3 -
 .../ComputeNodeAreasFromSurfaceMesh.cpp       |  3 -
 .../PartitionMesh/PartitionMesh.cpp           |  3 -
 .../ModelPreparation/createNeumannBc.cpp      |  3 -
 .../Utils/ModelPreparation/scaleProperty.cpp  |  3 -
 Applications/Utils/OGSFileConverter/main.cpp  |  5 --
 Applications/Utils/PostProcessing/postLIE.cpp |  3 -
 .../Utils/SWMMConverter/SWMMConverter.cpp     |  4 -
 .../createMeshElemPropertiesFromASCRaster.cpp |  3 -
 .../generateStructuredMesh.cpp                |  4 -
 BaseLib/LogogCustomCout.h                     | 69 ---------------
 BaseLib/LogogSimpleFormatter.h                | 35 --------
 ...TemplateLogogFormatterSuppressedGCC-impl.h | 88 -------------------
 BaseLib/TemplateLogogFormatterSuppressedGCC.h | 58 ------------
 52 files changed, 5 insertions(+), 496 deletions(-)
 delete mode 100644 Applications/ApplicationsLib/LogogSetup.h
 delete mode 100644 BaseLib/LogogCustomCout.h
 delete mode 100644 BaseLib/LogogSimpleFormatter.h
 delete mode 100644 BaseLib/TemplateLogogFormatterSuppressedGCC-impl.h
 delete mode 100644 BaseLib/TemplateLogogFormatterSuppressedGCC.h

diff --git a/Applications/ApplicationsLib/LogogSetup.h b/Applications/ApplicationsLib/LogogSetup.h
deleted file mode 100644
index c4812fd0bd6..00000000000
--- a/Applications/ApplicationsLib/LogogSetup.h
+++ /dev/null
@@ -1,83 +0,0 @@
-/**
- * \copyright
- * Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org)
- *            Distributed under a Modified BSD License.
- *              See accompanying file LICENSE.txt or
- *              http://www.opengeosys.org/project/license
- *
- */
-
-#pragma once
-
-#include <map>
-#include <memory>
-#include <string>
-
-#include <logog/include/logog.hpp>
-
-#include "BaseLib/LogogSimpleFormatter.h"
-
-namespace ApplicationsLib
-{
-
-/// Initialization and shutting down of the logog library.
-class LogogSetup final
-{
-public:
-
-    LogogSetup()
-    {
-        LOGOG_INITIALIZE();
-        logog_cout = std::make_unique<logog::Cout>();
-        setFormatter(std::make_unique<BaseLib::LogogSimpleFormatter>());
-    }
-
-    ~LogogSetup()
-    {
-        // Objects have to be deleted before shutdown
-        fmt.reset(nullptr);
-        logog_cout.reset(nullptr);
-        LOGOG_SHUTDOWN();
-    }
-
-    void setFormatter(std::unique_ptr<logog::Formatter>&& formatter)
-    {
-        fmt = std::move(formatter);
-        logog_cout->SetFormatter(*fmt);
-    }
-
-    void setLevel(LOGOG_LEVEL_TYPE level)
-    {
-        logog::SetDefaultLevel(level);
-    }
-
-    void setLevel(std::string const & level)
-    {
-        std::map<std::string, LOGOG_LEVEL_TYPE> foo =
-        {
-            { "none", LOGOG_LEVEL_NONE },
-            { "emergency", LOGOG_LEVEL_EMERGENCY },
-            { "alert", LOGOG_LEVEL_ALERT},
-            { "critical", LOGOG_LEVEL_CRITICAL },
-            { "error", LOGOG_LEVEL_ERROR },
-            { "warn", LOGOG_LEVEL_WARN },
-            { "info", LOGOG_LEVEL_INFO },
-            { "debug", LOGOG_LEVEL_DEBUG },
-            { "all", LOGOG_LEVEL_ALL }
-        };
-
-
-        LOGOG_LEVEL_TYPE level_type = LOGOG_LEVEL_ALL;
-        if(foo.find(level) != foo.end())
-            level_type = foo[level];
-        else
-            WARN("'%s' is not a valid log level! 'all' is used instead.", level.c_str());
-        setLevel(level_type);
-    }
-
-private:
-    std::unique_ptr<logog::Formatter> fmt;
-    std::unique_ptr<logog::Cout> logog_cout;
-};
-
-}  // namespace ApplicationsLib
diff --git a/Applications/CLI/ogs.cpp b/Applications/CLI/ogs.cpp
index 582f0befc3b..ea98eae5508 100644
--- a/Applications/CLI/ogs.cpp
+++ b/Applications/CLI/ogs.cpp
@@ -31,10 +31,8 @@
 #include "BaseLib/DateTools.h"
 #include "BaseLib/FileTools.h"
 #include "BaseLib/RunTime.h"
-#include "BaseLib/TemplateLogogFormatterSuppressedGCC.h"
 
 #include "Applications/ApplicationsLib/LinearSolverLibrarySetup.h"
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "Applications/ApplicationsLib/ProjectData.h"
 #include "Applications/ApplicationsLib/TestDefinition.h"
 #include "Applications/InSituLib/Adaptor.h"
@@ -123,7 +121,6 @@ int main(int argc, char* argv[])
         std::cout.setf(std::ios::unitbuf);
     }
 
-    ApplicationsLib::LogogSetup logog_setup;
     logog_setup.setLevel(log_level_arg.getValue());
 
     INFO("This is OpenGeoSys-6 version {:s}.",
diff --git a/Applications/DataExplorer/main.cpp b/Applications/DataExplorer/main.cpp
index 72502fe0a46..6e96e570563 100644
--- a/Applications/DataExplorer/main.cpp
+++ b/Applications/DataExplorer/main.cpp
@@ -16,7 +16,7 @@ FbxScene* lScene = nullptr;
 #include <vtkSmartPointer.h>
 
 #include "InfoLib/GitInfo.h"
-#include "BaseLib/LogogSimpleFormatter.h"
+#include "BaseLib/Logging.h"
 #include "VtkVis/VtkConsoleOutputWindow.h"
 
 int main(int argc, char* argv[])
diff --git a/Applications/Utils/FileConverter/ConvertSHPToGLI.cpp b/Applications/Utils/FileConverter/ConvertSHPToGLI.cpp
index 24b456997eb..620b56983df 100644
--- a/Applications/Utils/FileConverter/ConvertSHPToGLI.cpp
+++ b/Applications/Utils/FileConverter/ConvertSHPToGLI.cpp
@@ -21,7 +21,6 @@
 // ShapeLib
 #include <shapefil.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "InfoLib/GitInfo.h"
 #include "GeoLib/GEOObjects.h"
 #include "GeoLib/IO/XmlIO/Qt/XmlGmlInterface.h"
@@ -152,8 +151,6 @@ void printFieldInformationTable(DBFHandle const& dbf_handle, std::size_t n_field
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Converts points contained in shape file\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/FileConverter/FEFLOW2OGS.cpp b/Applications/Utils/FileConverter/FEFLOW2OGS.cpp
index 1f9bb55937f..d8005ccc832 100644
--- a/Applications/Utils/FileConverter/FEFLOW2OGS.cpp
+++ b/Applications/Utils/FileConverter/FEFLOW2OGS.cpp
@@ -13,8 +13,6 @@
 // ThirdParty
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
-
 // BaseLib
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/FileTools.h"
@@ -33,8 +31,6 @@
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Converting a mesh in FEFLOW file format (ASCII, version 5.4) to a vtk "
         "unstructured grid file (new OGS file format) or to the old OGS file "
diff --git a/Applications/Utils/FileConverter/GMSH2OGS.cpp b/Applications/Utils/FileConverter/GMSH2OGS.cpp
index be9f1276f3c..f1bbf5e256b 100644
--- a/Applications/Utils/FileConverter/GMSH2OGS.cpp
+++ b/Applications/Utils/FileConverter/GMSH2OGS.cpp
@@ -19,8 +19,6 @@
 // ThirdParty
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
-
 // BaseLib
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/FileTools.h"
@@ -40,8 +38,6 @@
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Converting meshes in gmsh file format (ASCII, version 2.2) to a vtk "
         "unstructured grid file (new OGS file format) or to the old OGS file "
diff --git a/Applications/Utils/FileConverter/NetCdfConverter.cpp b/Applications/Utils/FileConverter/NetCdfConverter.cpp
index d2bd674dcb8..9f7ae02b9af 100644
--- a/Applications/Utils/FileConverter/NetCdfConverter.cpp
+++ b/Applications/Utils/FileConverter/NetCdfConverter.cpp
@@ -20,9 +20,7 @@
 #include <string>
 #include <utility>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "BaseLib/FileTools.h"
-#include "BaseLib/LogogSimpleFormatter.h"
 #include "BaseLib/Logging.h"
 #include "GeoLib/Raster.h"
 #include "InfoLib/GitInfo.h"
@@ -577,8 +575,6 @@ static bool convert(NcFile const& dataset, NcVar const& var,
 
 int main(int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Converts NetCDF data into mesh file(s).\n\n "
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/FileConverter/OGS2VTK.cpp b/Applications/Utils/FileConverter/OGS2VTK.cpp
index 0114a775724..8a9615f6754 100644
--- a/Applications/Utils/FileConverter/OGS2VTK.cpp
+++ b/Applications/Utils/FileConverter/OGS2VTK.cpp
@@ -16,7 +16,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "InfoLib/GitInfo.h"
 #include "MeshLib/IO/VtkIO/VtuInterface.h"
 #include "MeshLib/IO/readMeshFromFile.h"
@@ -24,8 +23,6 @@
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Converts OGS mesh into VTK mesh.\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/FileConverter/TIN2VTK.cpp b/Applications/Utils/FileConverter/TIN2VTK.cpp
index 5bebac4de37..e43dc754ca1 100644
--- a/Applications/Utils/FileConverter/TIN2VTK.cpp
+++ b/Applications/Utils/FileConverter/TIN2VTK.cpp
@@ -13,8 +13,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
-
 // BaseLib
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/FileTools.h"
@@ -34,8 +32,6 @@
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Converts TIN file into VTU file.\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/FileConverter/TecPlotTools.cpp b/Applications/Utils/FileConverter/TecPlotTools.cpp
index f32cb12f4be..2ac3c338a70 100644
--- a/Applications/Utils/FileConverter/TecPlotTools.cpp
+++ b/Applications/Utils/FileConverter/TecPlotTools.cpp
@@ -14,8 +14,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include <Applications/ApplicationsLib/LogogSetup.h>
-
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/StringTools.h"
 
@@ -409,8 +407,6 @@ int convertFile(std::ifstream& in, std::string file_name)
  */
 int main(int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "TecPlot Parser\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/FileConverter/VTK2OGS.cpp b/Applications/Utils/FileConverter/VTK2OGS.cpp
index 7f496cc15fe..9f3746bb484 100644
--- a/Applications/Utils/FileConverter/VTK2OGS.cpp
+++ b/Applications/Utils/FileConverter/VTK2OGS.cpp
@@ -16,7 +16,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "InfoLib/GitInfo.h"
 #include "MeshLib/IO/Legacy/MeshIO.h"
 #include "MeshLib/IO/VtkIO/VtuInterface.h"
@@ -24,8 +23,6 @@
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Converts VTK mesh into OGS mesh.\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/FileConverter/VTK2TIN.cpp b/Applications/Utils/FileConverter/VTK2TIN.cpp
index 9e5006d3f66..621558d2ca9 100644
--- a/Applications/Utils/FileConverter/VTK2TIN.cpp
+++ b/Applications/Utils/FileConverter/VTK2TIN.cpp
@@ -13,8 +13,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
-
 // BaseLib
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/Logging.h"
@@ -35,8 +33,6 @@
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Converts VTK mesh into TIN file.\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/FileConverter/convertGEO.cpp b/Applications/Utils/FileConverter/convertGEO.cpp
index d56c25d8905..0c59d694193 100644
--- a/Applications/Utils/FileConverter/convertGEO.cpp
+++ b/Applications/Utils/FileConverter/convertGEO.cpp
@@ -14,7 +14,6 @@
 
 #include "InfoLib/GitInfo.h"
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "Applications/FileIO/readGeometryFromFile.h"
 #include "Applications/FileIO/writeGeometryToFile.h"
 #include "GeoLib/GEOObjects.h"
@@ -22,8 +21,6 @@
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Converts OGS geometry file into another file format. "
         "Currently *.gml (OGS6 XML-based format) and *.gli (OGS5 format) "
diff --git a/Applications/Utils/FileConverter/generateMatPropsFromMatID.cpp b/Applications/Utils/FileConverter/generateMatPropsFromMatID.cpp
index 386d1474485..866430351be 100644
--- a/Applications/Utils/FileConverter/generateMatPropsFromMatID.cpp
+++ b/Applications/Utils/FileConverter/generateMatPropsFromMatID.cpp
@@ -16,8 +16,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
-
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/FileTools.h"
 
@@ -29,8 +27,6 @@
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Creates a new file for material properties and sets the material ids "
         "in the msh-file to 0\n\n"
diff --git a/Applications/Utils/GeoTools/MoveGeometry.cpp b/Applications/Utils/GeoTools/MoveGeometry.cpp
index 165c3275546..dadedf8a0eb 100644
--- a/Applications/Utils/GeoTools/MoveGeometry.cpp
+++ b/Applications/Utils/GeoTools/MoveGeometry.cpp
@@ -14,7 +14,6 @@
 // ThirdParty
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "InfoLib/GitInfo.h"
 #include "GeoLib/GEOObjects.h"
 #include "GeoLib/IO/XmlIO/Qt/XmlGmlInterface.h"
@@ -26,8 +25,6 @@ int main(int argc, char *argv[])
 {
     QCoreApplication app(argc, argv);
 
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Moves the points of a geometry by a given displacement vector\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/GeoTools/TriangulatePolyline.cpp b/Applications/Utils/GeoTools/TriangulatePolyline.cpp
index 1e320147b23..7d0870dac1e 100644
--- a/Applications/Utils/GeoTools/TriangulatePolyline.cpp
+++ b/Applications/Utils/GeoTools/TriangulatePolyline.cpp
@@ -15,7 +15,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "Applications/FileIO/Legacy/createSurface.h"
 
 #include "InfoLib/GitInfo.h"
@@ -40,8 +39,6 @@ int main(int argc, char *argv[])
 {
     QCoreApplication app(argc, argv, false);
 
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Triangulates the specified polyline in the given geometry file.\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/MeshEdit/AddTopLayer.cpp b/Applications/Utils/MeshEdit/AddTopLayer.cpp
index 298e7f22a8a..b16ad59223e 100644
--- a/Applications/Utils/MeshEdit/AddTopLayer.cpp
+++ b/Applications/Utils/MeshEdit/AddTopLayer.cpp
@@ -13,7 +13,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/FileTools.h"
 #include "MeshLib/IO/readMeshFromFile.h"
@@ -23,8 +22,6 @@
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Adds a top layer to an existing mesh"
         "The documentation is available at "
diff --git a/Applications/Utils/MeshEdit/CreateBoundaryConditionsAlongPolylines.cpp b/Applications/Utils/MeshEdit/CreateBoundaryConditionsAlongPolylines.cpp
index b3b4f34c0ac..7cb24fa42a7 100644
--- a/Applications/Utils/MeshEdit/CreateBoundaryConditionsAlongPolylines.cpp
+++ b/Applications/Utils/MeshEdit/CreateBoundaryConditionsAlongPolylines.cpp
@@ -16,7 +16,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "Applications/FileIO/readGeometryFromFile.h"
 #include "Applications/FileIO/writeGeometryToFile.h"
 
@@ -123,8 +122,6 @@ void writeBCsAndGeometry(GeoLib::GEOObjects& geometry_sets,
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Creates boundary conditions for mesh nodes along polylines."
         "The documentation is available at "
diff --git a/Applications/Utils/MeshEdit/ExtractSurface.cpp b/Applications/Utils/MeshEdit/ExtractSurface.cpp
index c45974f9d0e..3b7ffac05ce 100644
--- a/Applications/Utils/MeshEdit/ExtractSurface.cpp
+++ b/Applications/Utils/MeshEdit/ExtractSurface.cpp
@@ -15,8 +15,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
-
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/FileTools.h"
 #include "BaseLib/StringTools.h"
@@ -32,8 +30,6 @@
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Tool extracts the surface of the given mesh. The documentation is "
         "available at "
diff --git a/Applications/Utils/MeshEdit/MapGeometryToMeshSurface.cpp b/Applications/Utils/MeshEdit/MapGeometryToMeshSurface.cpp
index 9ad43bb2204..1da6f421b44 100644
--- a/Applications/Utils/MeshEdit/MapGeometryToMeshSurface.cpp
+++ b/Applications/Utils/MeshEdit/MapGeometryToMeshSurface.cpp
@@ -14,7 +14,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "InfoLib/GitInfo.h"
 #include "GeoLib/GEOObjects.h"
 #include "GeoLib/IO/XmlIO/Boost/BoostXmlGmlInterface.h"
@@ -24,8 +23,6 @@
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Maps geometric objects to the surface of a given mesh."
         "The documentation is available at "
diff --git a/Applications/Utils/MeshEdit/MoveMesh.cpp b/Applications/Utils/MeshEdit/MoveMesh.cpp
index bd9dca2d67c..22b86853355 100644
--- a/Applications/Utils/MeshEdit/MoveMesh.cpp
+++ b/Applications/Utils/MeshEdit/MoveMesh.cpp
@@ -12,7 +12,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/FileTools.h"
 #include "BaseLib/StringTools.h"
@@ -26,8 +25,6 @@
 
 int main(int argc, char *argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Moves the mesh nodes using the given displacement vector or if no "
         "displacement vector is given, moves the mesh nodes such that the "
diff --git a/Applications/Utils/MeshEdit/NodeReordering.cpp b/Applications/Utils/MeshEdit/NodeReordering.cpp
index 8bcee528fde..f0661ca207a 100644
--- a/Applications/Utils/MeshEdit/NodeReordering.cpp
+++ b/Applications/Utils/MeshEdit/NodeReordering.cpp
@@ -16,7 +16,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "BaseLib/Algorithm.h"
 #include "InfoLib/GitInfo.h"
 #include "MeshLib/Elements/Element.h"
@@ -143,8 +142,6 @@ void reorderNonlinearNodes(MeshLib::Mesh &mesh)
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logo_setup;
-
     TCLAP::CmdLine cmd(
         "Reordering of mesh nodes to make OGS Data Explorer 5 meshes "
         "compatible with OGS6.\n"
diff --git a/Applications/Utils/MeshEdit/RemoveGhostData.cpp b/Applications/Utils/MeshEdit/RemoveGhostData.cpp
index 9685a16cda2..602cc6809ff 100644
--- a/Applications/Utils/MeshEdit/RemoveGhostData.cpp
+++ b/Applications/Utils/MeshEdit/RemoveGhostData.cpp
@@ -9,12 +9,6 @@
  */
 
 #include <tclap/CmdLine.h>
-
-#include "Applications/ApplicationsLib/LogogSetup.h"
-#include "InfoLib/GitInfo.h"
-
-#include "MeshLib/IO/writeMeshToFile.h"
-
 #include <vtkCleanUnstructuredGrid.h>
 #include <vtkRemoveGhosts.h>
 #include <vtkSmartPointer.h>
@@ -22,10 +16,11 @@
 #include <vtkXMLPUnstructuredGridReader.h>
 #include <vtkXMLUnstructuredGridWriter.h>
 
+#include "InfoLib/GitInfo.h"
+#include "MeshLib/IO/writeMeshToFile.h"
+
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Reads a VTK partitioned unstructured grid (*.pvtu), cleans the ghost "
         "information and saves the data as as a regular, connected mesh file."
diff --git a/Applications/Utils/MeshEdit/ResetPropertiesInPolygonalRegion.cpp b/Applications/Utils/MeshEdit/ResetPropertiesInPolygonalRegion.cpp
index ca1834cf802..40e0bec8ec4 100644
--- a/Applications/Utils/MeshEdit/ResetPropertiesInPolygonalRegion.cpp
+++ b/Applications/Utils/MeshEdit/ResetPropertiesInPolygonalRegion.cpp
@@ -15,7 +15,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "Applications/FileIO/readGeometryFromFile.h"
 #include "InfoLib/GitInfo.h"
 #include "GeoLib/GEOObjects.h"
@@ -27,8 +26,6 @@
 
 int main(int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Sets the property value of a mesh element to a given new value iff at "
         "least one node of the element is within a polygonal region that is "
diff --git a/Applications/Utils/MeshEdit/UnityPreprocessing.cpp b/Applications/Utils/MeshEdit/UnityPreprocessing.cpp
index a52fe91c022..ca4b31aeefe 100644
--- a/Applications/Utils/MeshEdit/UnityPreprocessing.cpp
+++ b/Applications/Utils/MeshEdit/UnityPreprocessing.cpp
@@ -11,7 +11,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "InfoLib/GitInfo.h"
 #include "MeshLib/Elements/Hex.h"
 #include "MeshLib/Elements/Line.h"
@@ -181,8 +180,6 @@ MeshLib::Mesh* constructMesh(MeshLib::Mesh const& mesh)
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Prepares OGS-meshes for use in Unity.\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/MeshEdit/appendLinesAlongPolyline.cpp b/Applications/Utils/MeshEdit/appendLinesAlongPolyline.cpp
index 5dc53e1b2c6..84a9ee0c729 100644
--- a/Applications/Utils/MeshEdit/appendLinesAlongPolyline.cpp
+++ b/Applications/Utils/MeshEdit/appendLinesAlongPolyline.cpp
@@ -8,7 +8,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "Applications/FileIO/readGeometryFromFile.h"
 
 #include "InfoLib/GitInfo.h"
@@ -25,8 +24,6 @@
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Append line elements into a mesh.\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/MeshEdit/checkMesh.cpp b/Applications/Utils/MeshEdit/checkMesh.cpp
index 8b4152b1ebe..39c80b15564 100644
--- a/Applications/Utils/MeshEdit/checkMesh.cpp
+++ b/Applications/Utils/MeshEdit/checkMesh.cpp
@@ -11,8 +11,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
-
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/StringTools.h"
 #include "BaseLib/MemWatch.h"
@@ -31,8 +29,6 @@
 
 int main(int argc, char *argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Checks mesh properties.\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/MeshEdit/convertToLinearMesh.cpp b/Applications/Utils/MeshEdit/convertToLinearMesh.cpp
index a8361b9e119..85af3caaf5d 100644
--- a/Applications/Utils/MeshEdit/convertToLinearMesh.cpp
+++ b/Applications/Utils/MeshEdit/convertToLinearMesh.cpp
@@ -12,8 +12,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
-
 #include "InfoLib/GitInfo.h"
 
 #include "MeshLib/Mesh.h"
@@ -25,8 +23,6 @@
 
 int main(int argc, char *argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Convert a non-linear mesh to a linear mesh.\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/MeshEdit/createLayeredMeshFromRasters.cpp b/Applications/Utils/MeshEdit/createLayeredMeshFromRasters.cpp
index ed8244e3d85..43149b3518d 100644
--- a/Applications/Utils/MeshEdit/createLayeredMeshFromRasters.cpp
+++ b/Applications/Utils/MeshEdit/createLayeredMeshFromRasters.cpp
@@ -18,8 +18,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
-
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/FileTools.h"
 
@@ -58,8 +56,6 @@ int readRasterPaths(std::string const& raster_list_file, std::vector<std::string
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Creates a layered 3D OGS mesh from an existing 2D OGS mesh and raster "
         "files representing subsurface layers. Supported raster formats are "
diff --git a/Applications/Utils/MeshEdit/createQuadraticMesh.cpp b/Applications/Utils/MeshEdit/createQuadraticMesh.cpp
index a6954475d71..4dca46dadf4 100644
--- a/Applications/Utils/MeshEdit/createQuadraticMesh.cpp
+++ b/Applications/Utils/MeshEdit/createQuadraticMesh.cpp
@@ -12,8 +12,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
-
 #include "InfoLib/GitInfo.h"
 
 #include "MeshLib/Mesh.h"
@@ -25,8 +23,6 @@
 
 int main(int argc, char *argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Create quadratic order mesh.\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/MeshEdit/editMaterialID.cpp b/Applications/Utils/MeshEdit/editMaterialID.cpp
index bf37f69baab..823d3aab86a 100644
--- a/Applications/Utils/MeshEdit/editMaterialID.cpp
+++ b/Applications/Utils/MeshEdit/editMaterialID.cpp
@@ -10,7 +10,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "InfoLib/GitInfo.h"
 #include "MeshLib/Elements/Element.h"
 #include "MeshLib/IO/readMeshFromFile.h"
@@ -20,8 +19,6 @@
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Edit material IDs of mesh elements.\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/MeshEdit/moveMeshNodes.cpp b/Applications/Utils/MeshEdit/moveMeshNodes.cpp
index ab02208dee5..9946c730789 100644
--- a/Applications/Utils/MeshEdit/moveMeshNodes.cpp
+++ b/Applications/Utils/MeshEdit/moveMeshNodes.cpp
@@ -12,7 +12,6 @@
 #include <memory>
 #include <string>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/FileTools.h"
 #include "GeoLib/AABB.h"
@@ -45,8 +44,6 @@ double getClosestPointElevation(MeshLib::Node const& p,
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     std::vector<std::string> keywords;
     keywords.emplace_back("-ALL");
     keywords.emplace_back("-MESH");
diff --git a/Applications/Utils/MeshEdit/queryMesh.cpp b/Applications/Utils/MeshEdit/queryMesh.cpp
index 5f98083c734..bb81f98f0de 100644
--- a/Applications/Utils/MeshEdit/queryMesh.cpp
+++ b/Applications/Utils/MeshEdit/queryMesh.cpp
@@ -13,8 +13,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
-
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/StringTools.h"
 #include "BaseLib/FileTools.h"
@@ -26,8 +24,6 @@
 
 int main(int argc, char *argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Query mesh information.\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/MeshEdit/removeMeshElements.cpp b/Applications/Utils/MeshEdit/removeMeshElements.cpp
index 99e663bfaa8..ce366d7a0a2 100644
--- a/Applications/Utils/MeshEdit/removeMeshElements.cpp
+++ b/Applications/Utils/MeshEdit/removeMeshElements.cpp
@@ -15,7 +15,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "InfoLib/GitInfo.h"
 #include "MeshLib/Elements/Element.h"
 #include "MeshLib/IO/readMeshFromFile.h"
@@ -69,8 +68,6 @@ void searchByPropertyRange(std::string const& property_name,
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Removes mesh elements based on element type, element volume, scalar "
         "arrays, or bounding box . The documentation is available at "
diff --git a/Applications/Utils/MeshEdit/reviseMesh.cpp b/Applications/Utils/MeshEdit/reviseMesh.cpp
index 9b2c137c8d9..3d72c0146bb 100644
--- a/Applications/Utils/MeshEdit/reviseMesh.cpp
+++ b/Applications/Utils/MeshEdit/reviseMesh.cpp
@@ -13,8 +13,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
-
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/StringTools.h"
 #include "BaseLib/FileTools.h"
@@ -29,8 +27,6 @@
 
 int main(int argc, char *argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Mesh revision tool.\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/MeshEdit/swapNodeCoordinateAxes.cpp b/Applications/Utils/MeshEdit/swapNodeCoordinateAxes.cpp
index 1027c6b4a75..8a63fdb52b1 100644
--- a/Applications/Utils/MeshEdit/swapNodeCoordinateAxes.cpp
+++ b/Applications/Utils/MeshEdit/swapNodeCoordinateAxes.cpp
@@ -13,9 +13,8 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
-
 #include "InfoLib/GitInfo.h"
+#include "BaseLib/Logging.h"
 
 #include "MeshLib/Mesh.h"
 #include "MeshLib/Node.h"
@@ -90,8 +89,6 @@ static bool parseNewOrder(std::string const& str_order, std::array<int, 3> &new_
 
 int main(int argc, char *argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Swap node coordinate values.\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/MeshGeoTools/computeSurfaceNodeIDsInPolygonalRegion.cpp b/Applications/Utils/MeshGeoTools/computeSurfaceNodeIDsInPolygonalRegion.cpp
index 7b50a9189ae..bc496bf000a 100644
--- a/Applications/Utils/MeshGeoTools/computeSurfaceNodeIDsInPolygonalRegion.cpp
+++ b/Applications/Utils/MeshGeoTools/computeSurfaceNodeIDsInPolygonalRegion.cpp
@@ -17,7 +17,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "Applications/FileIO/readGeometryFromFile.h"
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/Error.h"
@@ -64,8 +63,6 @@ void writeToFile(std::string const& id_area_fname, std::string const& csv_fname,
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Computes ids of mesh nodes that are in polygonal regions and resides "
         "on the top surface. The polygonal regions have to be given in a gml- "
diff --git a/Applications/Utils/MeshGeoTools/constructMeshesFromGeometry.cpp b/Applications/Utils/MeshGeoTools/constructMeshesFromGeometry.cpp
index 8f2ccc8b17e..b85795c864f 100644
--- a/Applications/Utils/MeshGeoTools/constructMeshesFromGeometry.cpp
+++ b/Applications/Utils/MeshGeoTools/constructMeshesFromGeometry.cpp
@@ -9,7 +9,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "InfoLib/GitInfo.h"
 #include "GeoLib/GEOObjects.h"
 #include "GeoLib/IO/XmlIO/Boost/BoostXmlGmlInterface.h"
@@ -31,8 +30,6 @@ std::unique_ptr<GeoLib::GEOObjects> readGeometry(std::string const& filename)
 
 int main(int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logo_setup;
-
     TCLAP::CmdLine cmd(
         "Converts a geometry defined on a given mesh to distinct meshes. The "
         "documentation is available at "
diff --git a/Applications/Utils/MeshGeoTools/identifySubdomains.cpp b/Applications/Utils/MeshGeoTools/identifySubdomains.cpp
index 457a88664df..cabcd263bb1 100644
--- a/Applications/Utils/MeshGeoTools/identifySubdomains.cpp
+++ b/Applications/Utils/MeshGeoTools/identifySubdomains.cpp
@@ -9,7 +9,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "InfoLib/GitInfo.h"
 #include "MeshGeoToolsLib/IdentifySubdomainMesh.h"
 #include "MeshGeoToolsLib/MeshNodeSearcher.h"
@@ -43,8 +42,6 @@ std::vector<std::unique_ptr<MeshLib::Mesh>> readMeshes(
 
 int main(int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Checks if the subdomain meshes are part of the bulk mesh and writes "
         "the 'bulk_node_ids' and the 'bulk_element_ids' in each of them. The "
diff --git a/Applications/Utils/ModelPreparation/ComputeNodeAreasFromSurfaceMesh.cpp b/Applications/Utils/ModelPreparation/ComputeNodeAreasFromSurfaceMesh.cpp
index bf943a45ddc..1e8e43fe1a1 100644
--- a/Applications/Utils/ModelPreparation/ComputeNodeAreasFromSurfaceMesh.cpp
+++ b/Applications/Utils/ModelPreparation/ComputeNodeAreasFromSurfaceMesh.cpp
@@ -16,7 +16,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/Error.h"
 #include "BaseLib/FileTools.h"
@@ -57,8 +56,6 @@ void writeToFile(std::string const& id_area_fname, std::string const& csv_fname,
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "The tool computes the area per node of the surface mesh and writes "
         "the information as txt and csv data.\n\n"
diff --git a/Applications/Utils/ModelPreparation/PartitionMesh/PartitionMesh.cpp b/Applications/Utils/ModelPreparation/PartitionMesh/PartitionMesh.cpp
index eab42b7cd7e..9068d19cbc8 100644
--- a/Applications/Utils/ModelPreparation/PartitionMesh/PartitionMesh.cpp
+++ b/Applications/Utils/ModelPreparation/PartitionMesh/PartitionMesh.cpp
@@ -14,7 +14,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/CPUTime.h"
 #include "BaseLib/FileTools.h"
@@ -28,8 +27,6 @@ using namespace ApplicationUtils;
 
 int main(int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Partition a mesh for parallel computing."
         "The tasks of this tool are in twofold:\n"
diff --git a/Applications/Utils/ModelPreparation/createNeumannBc.cpp b/Applications/Utils/ModelPreparation/createNeumannBc.cpp
index 25a13b69644..d1d00e853d9 100644
--- a/Applications/Utils/ModelPreparation/createNeumannBc.cpp
+++ b/Applications/Utils/ModelPreparation/createNeumannBc.cpp
@@ -10,7 +10,6 @@
 #include <fstream>
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "InfoLib/GitInfo.h"
 #include "MeshLib/Elements/Element.h"
 #include "MeshLib/IO/readMeshFromFile.h"
@@ -74,8 +73,6 @@ std::vector<double> getSurfaceIntegratedValuesForNodes(
 
 int main(int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logo_setup;
-
     TCLAP::CmdLine cmd(
         "Integrates the given element property and outputs an OGS-5 direct "
         "Neumann boundary condition. The mesh has to contain a property "
diff --git a/Applications/Utils/ModelPreparation/scaleProperty.cpp b/Applications/Utils/ModelPreparation/scaleProperty.cpp
index 3f271338bda..50dd95f0a4c 100644
--- a/Applications/Utils/ModelPreparation/scaleProperty.cpp
+++ b/Applications/Utils/ModelPreparation/scaleProperty.cpp
@@ -15,7 +15,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "InfoLib/GitInfo.h"
 #include "MeshLib/IO/readMeshFromFile.h"
 #include "MeshLib/IO/writeMeshToFile.h"
@@ -23,8 +22,6 @@
 
 int main(int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logo_setup;
-
     TCLAP::CmdLine cmd(
         "Scales a property of a mesh.\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/OGSFileConverter/main.cpp b/Applications/Utils/OGSFileConverter/main.cpp
index cba8f51a372..e24dfec5ec1 100644
--- a/Applications/Utils/OGSFileConverter/main.cpp
+++ b/Applications/Utils/OGSFileConverter/main.cpp
@@ -10,19 +10,14 @@
 #include "OGSFileConverter.h"
 
 #include <clocale>
-
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "InfoLib/GitInfo.h"
-
 #include <QApplication>
 
 
 int main(int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "A conversion tool for ogs5 and ogs6 files.\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/PostProcessing/postLIE.cpp b/Applications/Utils/PostProcessing/postLIE.cpp
index 0ec407a0333..6befe24640c 100644
--- a/Applications/Utils/PostProcessing/postLIE.cpp
+++ b/Applications/Utils/PostProcessing/postLIE.cpp
@@ -15,7 +15,6 @@
 #include <boost/property_tree/ptree.hpp>
 #include <boost/property_tree/xml_parser.hpp>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/FileTools.h"
 #include "MeshLib/IO/readMeshFromFile.h"
@@ -116,8 +115,6 @@ void postPVD(std::string const& in_pvd_filename,
 
 int main(int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Post-process results of the LIE approach.\n\n"
         "OpenGeoSys-6 software, version " +
diff --git a/Applications/Utils/SWMMConverter/SWMMConverter.cpp b/Applications/Utils/SWMMConverter/SWMMConverter.cpp
index 8206650b0f4..d1f4cf4c036 100644
--- a/Applications/Utils/SWMMConverter/SWMMConverter.cpp
+++ b/Applications/Utils/SWMMConverter/SWMMConverter.cpp
@@ -10,8 +10,6 @@
 
 #include "Applications/FileIO/SWMM/SWMMInterface.h"
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
-
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/FileTools.h"
 #include "BaseLib/StringTools.h"
@@ -166,8 +164,6 @@ int writeCsvOutput(std::string input_file,
 
 int main(int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup setup;
-
     TCLAP::CmdLine cmd(
         "Read files for the Storm Water Management Model (SWMM) and converts "
         "them into OGS data structures.\n\n"
diff --git a/Applications/Utils/SimpleMeshCreation/createMeshElemPropertiesFromASCRaster.cpp b/Applications/Utils/SimpleMeshCreation/createMeshElemPropertiesFromASCRaster.cpp
index 1b05df5ba3a..3a103ca06e6 100644
--- a/Applications/Utils/SimpleMeshCreation/createMeshElemPropertiesFromASCRaster.cpp
+++ b/Applications/Utils/SimpleMeshCreation/createMeshElemPropertiesFromASCRaster.cpp
@@ -16,7 +16,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
 #include "Applications/FileIO/AsciiRasterInterface.h"
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/FileTools.h"
@@ -34,8 +33,6 @@
 
 int main(int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logo_setup;
-
     TCLAP::CmdLine cmd(
         "Generates properties for mesh elements of an input mesh deploying a "
         "ASC raster file.\n\n"
diff --git a/Applications/Utils/SimpleMeshCreation/generateStructuredMesh.cpp b/Applications/Utils/SimpleMeshCreation/generateStructuredMesh.cpp
index 0555896d031..f9495fadf00 100644
--- a/Applications/Utils/SimpleMeshCreation/generateStructuredMesh.cpp
+++ b/Applications/Utils/SimpleMeshCreation/generateStructuredMesh.cpp
@@ -13,8 +13,6 @@
 
 #include <tclap/CmdLine.h>
 
-#include "Applications/ApplicationsLib/LogogSetup.h"
-
 #include "InfoLib/GitInfo.h"
 #include "BaseLib/Error.h"
 #include "BaseLib/Subdivision.h"
@@ -59,8 +57,6 @@ unsigned getDimension(MeshLib::MeshElemType eleType)
 
 int main (int argc, char* argv[])
 {
-    ApplicationsLib::LogogSetup logog_setup;
-
     TCLAP::CmdLine cmd(
         "Structured mesh generator.\n"
         "The documentation is available at "
diff --git a/BaseLib/LogogCustomCout.h b/BaseLib/LogogCustomCout.h
deleted file mode 100644
index 9bf7b8022c0..00000000000
--- a/BaseLib/LogogCustomCout.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/**
- * \file
- * \copyright
- * Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org)
- *            Distributed under a Modified BSD License.
- *              See accompanying file LICENSE.txt or
- *              http://www.opengeosys.org/project/license
- *
- */
-
-#pragma once
-
-#include <iostream>
-
-#include <logog/include/logog.hpp>
-
-#ifdef USE_MPI
-#include <mpi.h>
-#endif
-
-namespace BaseLib
-{
-
-/// Custom target for logog output
-class LogogCustomCout : public logog::Target
-{
-public:
-#ifdef USE_MPI
-    /**
-     * Constructor when MPI is involved
-     *
-     * @param all_rank_output_level  Minimum level to output messages from all MPI processes
-     * @param mpi_comm               MPI communicator
-     */
-    LogogCustomCout(LOGOG_LEVEL_TYPE all_rank_output_level = LOGOG_LEVEL_INFO, MPI_Comm mpi_comm = MPI_COMM_WORLD)
-    : _all_rank_output_level(all_rank_output_level), _is_rank0 (getRank(mpi_comm)==0)
-    {}
-#endif
-
-    virtual int Receive( const logog::Topic &topic )
-    {
-#ifdef USE_MPI
-        if (topic.Level() > _all_rank_output_level && !_is_rank0)
-            return 0;
-#endif
-        return logog::Target::Receive(topic);
-    }
-
-    virtual int Output( const LOGOG_STRING &data )
-    {
-        LOGOG_COUT << (const LOGOG_CHAR *)data << std::flush;
-        return 0;
-    }
-
-private:
-#ifdef USE_MPI
-    int getRank(MPI_Comm mpi_comm) const
-    {
-        int rank = 0;
-        MPI_Comm_rank(mpi_comm, &rank);
-        return rank;
-    }
-
-    const LOGOG_LEVEL_TYPE _all_rank_output_level;
-    const bool _is_rank0;
-#endif
-};
-
-} // namespace BaseLib
diff --git a/BaseLib/LogogSimpleFormatter.h b/BaseLib/LogogSimpleFormatter.h
deleted file mode 100644
index 1bde2a5b43e..00000000000
--- a/BaseLib/LogogSimpleFormatter.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * \file
- * \author Lars Bilke
- * \date   2012-09-13
- * \brief  Definition of the LogogSimpleFormatter class.
- *
- * \copyright
- * Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org)
- *            Distributed under a Modified BSD License.
- *              See accompanying file LICENSE.txt or
- *              http://www.opengeosys.org/project/license
- *
- */
-
-#pragma once
-
-#include <logog/include/logog.hpp>
-
-namespace BaseLib
-{
-/**
- * \brief LogogSimpleFormatter strips file name and line number from logog
- * output.
- * See http://johnwbyrd.github.com/logog/customformatting.html for details.
- **/
-class LogogSimpleFormatter : public logog::FormatterMSVC
-{
-    TOPIC_FLAGS GetTopicFlags(const logog::Topic& topic) override
-    {
-        return (logog::Formatter::GetTopicFlags(topic) &
-                ~(TOPIC_FILE_NAME_FLAG | TOPIC_LINE_NUMBER_FLAG));
-    }
-};
-
-}  // namespace BaseLib
diff --git a/BaseLib/TemplateLogogFormatterSuppressedGCC-impl.h b/BaseLib/TemplateLogogFormatterSuppressedGCC-impl.h
deleted file mode 100644
index 9ddde375041..00000000000
--- a/BaseLib/TemplateLogogFormatterSuppressedGCC-impl.h
+++ /dev/null
@@ -1,88 +0,0 @@
-/**
- * \file
- * \copyright
- * Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org)
- *            Distributed under a Modified BSD License.
- *              See accompanying file LICENSE.txt or
- *              http://www.opengeosys.org/project/license
- *
- */
-
-namespace BaseLib {
-
-#ifdef USE_MPI
-template <int T_SUPPPRESS_TOPIC_FLAG>
-TemplateLogogFormatterSuppressedGCC<T_SUPPPRESS_TOPIC_FLAG>
-::TemplateLogogFormatterSuppressedGCC(MPI_Comm mpi_comm)
-{
-    int rank = 0;
-    MPI_Comm_rank(mpi_comm, &rank);
-    _str_mpi_rank = "[" + std::to_string(rank) + "] ";
-}
-#endif
-
-template <int T_SUPPPRESS_TOPIC_FLAG>
-LOGOG_STRING &
-TemplateLogogFormatterSuppressedGCC<T_SUPPPRESS_TOPIC_FLAG>
-::Format( const logog::Topic &topic, const logog::Target &target )
-{
-    TOPIC_FLAGS flags;
-    flags = GetTopicFlags( topic );
-
-    m_sMessageBuffer.clear();
-
-#ifdef USE_MPI
-    m_sMessageBuffer.append(_str_mpi_rank.c_str());
-#endif
-
-    if ( flags & TOPIC_FILE_NAME_FLAG )
-    {
-        m_sMessageBuffer.append( topic.FileName() );
-        m_sMessageBuffer.append( ':' );
-    }
-
-    if ( flags & TOPIC_LINE_NUMBER_FLAG )
-    {
-        m_sIntBuffer.assign( topic.LineNumber() );
-        m_sMessageBuffer.append( m_sIntBuffer );
-
-        m_sMessageBuffer.append( LOGOG_CONST_STRING(": "));
-    }
-
-    RenderTimeOfDay();
-
-    if ( flags & TOPIC_LEVEL_FLAG )
-    {
-        m_sMessageBuffer.append( ErrorDescription( topic.Level()));
-        m_sMessageBuffer.append( LOGOG_CONST_STRING(": "));
-    }
-
-    if ( flags & TOPIC_GROUP_FLAG )
-    {
-        m_sMessageBuffer.append( LOGOG_CONST_STRING("{") );
-        m_sMessageBuffer.append( topic.Group() );
-        m_sMessageBuffer.append( LOGOG_CONST_STRING("} ") );
-    }
-
-    if ( flags & TOPIC_CATEGORY_FLAG )
-    {
-        m_sMessageBuffer.append( LOGOG_CONST_STRING("["));
-        m_sMessageBuffer.append( topic.Category() );
-        m_sMessageBuffer.append( LOGOG_CONST_STRING("] "));
-    }
-
-    if ( flags & TOPIC_MESSAGE_FLAG )
-    {
-        m_sMessageBuffer.append( topic.Message() );
-        m_sMessageBuffer.append( (LOGOG_CHAR)'\n' );
-    }
-
-    if (target.GetNullTerminatesStrings())
-    {
-        m_sMessageBuffer.append((LOGOG_CHAR)'\0');
-    }
-
-    return m_sMessageBuffer;
-}
-
-} // namespace BaseLib
diff --git a/BaseLib/TemplateLogogFormatterSuppressedGCC.h b/BaseLib/TemplateLogogFormatterSuppressedGCC.h
deleted file mode 100644
index b3b9608b599..00000000000
--- a/BaseLib/TemplateLogogFormatterSuppressedGCC.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/**
- * \file
- * \author Norihiro Watanabe
- * \date   2012-12-06
- * \brief  Definition of the TemplateLogogFormatterSuppressedGCC class.
- *
- * \copyright
- * Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org)
- *            Distributed under a Modified BSD License.
- *              See accompanying file LICENSE.txt or
- *              http://www.opengeosys.org/project/license
- *
- */
-
-#pragma once
-
-#include <string>
-
-#include <logog/include/logog.hpp>
-#ifdef USE_MPI
-#include <mpi.h>
-#endif
-
-#include "StringTools.h"
-
-namespace BaseLib {
-
-/**
- * \brief TemplateLogogFormatterSuppressedGCC strips topics given as a template
- * parameter from logog::FormatterGCC.
- * See http://johnwbyrd.github.com/logog/customformatting.html for details.
- **/
-template <int T_SUPPPRESS_TOPIC_FLAG>
-class TemplateLogogFormatterSuppressedGCC : public logog::FormatterGCC
-{
-public:
-#ifdef USE_MPI
-    TemplateLogogFormatterSuppressedGCC(MPI_Comm mpi_comm = MPI_COMM_WORLD);
-#endif
-
-    TOPIC_FLAGS GetTopicFlags(const logog::Topic& topic) override
-    {
-    return ( logog::Formatter::GetTopicFlags( topic ) &
-        ~( T_SUPPPRESS_TOPIC_FLAG ));
-    }
-
-    LOGOG_STRING& Format(const logog::Topic& topic,
-                         const logog::Target& target) override;
-
-private:
-#ifdef USE_MPI
-    std::string _str_mpi_rank;
-#endif
-};
-
-} // namespace BaseLib
-
-#include "TemplateLogogFormatterSuppressedGCC-impl.h"
-- 
GitLab