ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Log.h File Reference
#include <hermes.h>
#include "luci/LoggingContext.h"

Go to the source code of this file.

Data Structures

class  luci::Logger
 Logger Implementation. More...
 
class  luci::LoggerConfig
 Logger Configuration. More...
 

Namespaces

namespace  luci
 

Macros

#define LOGGER(name)   ::luci::Logger name{::luci::LoggingContext::get()};
 
#define INFO(name)   HERMES_VERBOSE(name, 3)
 
#define WARN(name)   HERMES_VERBOSE(name, 2)
 
#define VERBOSE(name, lv)   HERMES_VERBOSE(name, lv)
 

Macro Definition Documentation

◆ INFO

#define INFO (   name)    HERMES_VERBOSE(name, 3)

Definition at line 69 of file Log.h.

◆ LOGGER

#define LOGGER (   name)    ::luci::Logger name{::luci::LoggingContext::get()};

HOW TO USE:

LOGGER(l);

INFO(l) << "Hello, World" << std::endl;

Definition at line 66 of file Log.h.

◆ VERBOSE

#define VERBOSE (   name,
  lv 
)    HERMES_VERBOSE(name, lv)

Definition at line 71 of file Log.h.

◆ WARN

#define WARN (   name)    HERMES_VERBOSE(name, 2)

Definition at line 70 of file Log.h.