Skip to content

Commit

Permalink
logger
Browse files Browse the repository at this point in the history
  • Loading branch information
plexoos committed Nov 22, 2024
1 parent b1a5141 commit 6d502ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ install(TARGETS g4ox EXPORT g4oxTargets

add_executable(consgeo consgeo.cpp ../include/argparse/argparse.hpp)
target_link_libraries(consgeo g4ox)
target_include_directories(consgeo PRIVATE $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
target_include_directories(consgeo PRIVATE $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include> $<BUILD_INTERFACE:${OPTICKS_INCLUDE_DIRECTORIES}/G4CX> $<INSTALL_INTERFACE:include>)

add_executable(simg4ox simg4ox.cpp g4app.h ../include/argparse/argparse.hpp)
target_link_libraries(simg4ox g4ox)
Expand Down
8 changes: 2 additions & 6 deletions src/consgeo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
#include <iostream>
#include <string>

#include <plog/Appenders/ColorConsoleAppender.h>
#include <plog/Formatters/TxtFormatter.h>
#include <plog/Init.h>
#include "SysRap/OPTICKS_LOG.hh"

#include <argparse/argparse.hpp>

Expand All @@ -14,9 +12,7 @@ using namespace std;

int main(int argc, char **argv)
{
using PLogFormat = plog::TxtFormatter;
static plog::ColorConsoleAppender<PLogFormat> consoleAppender;
plog::init(plog::debug, &consoleAppender);
OPTICKS_LOG(argc, argv);

argparse::ArgumentParser program("consgeo", "0.0.0");

Expand Down

0 comments on commit 6d502ff

Please sign in to comment.