Let's use TF2TFLITE_Log_Frontend instead of MOCO_LOG.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
file(GLOB_RECURSE SOURCES "src/*.cpp")
add_executable(tf2tflite ${SOURCES})
+target_link_libraries(tf2tflite PRIVATE moco_log)
target_link_libraries(tf2tflite PRIVATE moco_tf_frontend)
target_link_libraries(tf2tflite PRIVATE nnkit_support_tftestinfo)
target_link_libraries(tf2tflite PRIVATE exo_tflite)
#include "CustomopConfLoader.h"
+#include <moco/LoggingContext.h>
#include <moco/tf/Frontend.h>
#include <exo/TFLExporter.h>
int main(int argc, char **argv)
{
+ using EnvConfig = hermes::EnvConfig<hermes::EnvFormat::BooleanNumber>;
+
+ // This line allows users to control all the moco-tf loggers via TF2TFLITE_Log_Frontend
+ moco::LoggingContext::get()->config(stdex::make_unique<EnvConfig>("TF2TFLITE_Log_Frontend"));
+
LOGGER(l);
// TODO We need better args parsing in future