NS3-GUI-HELPER V1.2.0
A code generator for NS-3 Scripts
Loading...
Searching...
No Matches
Helpers.LoggingHelper Class Reference

Public Member Functions

 LoggingHelper ()
 

Static Public Member Functions

static void setLogLevel (LogLevel level)
 
static LogLevel getLogLevel ()
 
static int getLogLevelPriority ()
 
static int getLogLevelPriority (LogLevel level)
 
static void LogError (String msg)
 
static void LogDebug (String msg)
 
static void LogInfo (String msg)
 
static void LogFunction (String msg)
 
static void LogLogic (String msg)
 
static void Log (String msg)
 

Detailed Description

to enable the debugging for the application, it will help in quick turning on and off for debugging while observing from the command line

Since
1.0.0

Definition at line 19 of file LoggingHelper.java.

Constructor & Destructor Documentation

◆ LoggingHelper()

Helpers.LoggingHelper.LoggingHelper ( )

Definition at line 61 of file LoggingHelper.java.

Member Function Documentation

◆ getLogLevel()

static LogLevel Helpers.LoggingHelper.getLogLevel ( )
static

to get the log level for the app

Returns
The log level for the application
Since
1.2.0

Definition at line 87 of file LoggingHelper.java.

◆ getLogLevelPriority() [1/2]

static int Helpers.LoggingHelper.getLogLevelPriority ( )
static

to get the priority number for current log level

Returns
The priority number for current log level
Since
1.2.0

Definition at line 97 of file LoggingHelper.java.

◆ getLogLevelPriority() [2/2]

static int Helpers.LoggingHelper.getLogLevelPriority ( LogLevel level)
static

to get the priority number for the desired log level

Parameters
levelthe desired log level
Returns
The priority number for the given log level
Since
1.2.0

Definition at line 108 of file LoggingHelper.java.

◆ Log()

static void Helpers.LoggingHelper.Log ( String msg)
static

to write the normal level log information

Parameters
msgthe msg that will be printed as normal level log
See also
LoggingHelper::LogError(String)
LoggingHelper::LogDebug(String)
LoggingHelper::LogInfo(String)
LoggingHelper::LogFunction(String)
LoggingHelper::LogLogic(String)
Since
1.2.0

Definition at line 213 of file LoggingHelper.java.

◆ LogDebug()

static void Helpers.LoggingHelper.LogDebug ( String msg)
static

to write the debug level log information

Parameters
msgthe msg that will be printed as debug level log
See also
LoggingHelper::LogError(String)
LoggingHelper::LogInfo(String)
LoggingHelper::LogFunction(String)
LoggingHelper::LogLogic(String)
LoggingHelper::Log(String)
Since
1.2.0

Definition at line 141 of file LoggingHelper.java.

◆ LogError()

static void Helpers.LoggingHelper.LogError ( String msg)
static

to write the error level log information

Parameters
msgthe msg that will be printed as error level log
See also
LoggingHelper::LogDebug(String)
LoggingHelper::LogInfo(String)
LoggingHelper::LogFunction(String)
LoggingHelper::LogLogic(String)
LoggingHelper::Log(String)
Since
1.2.0

Definition at line 123 of file LoggingHelper.java.

◆ LogFunction()

static void Helpers.LoggingHelper.LogFunction ( String msg)
static

to write the function level log information

Parameters
msgthe msg that will be printed as function level log
See also
LoggingHelper::LogError(String)
LoggingHelper::LogDebug(String)
LoggingHelper::LogInfo(String)
LoggingHelper::LogLogic(String)
LoggingHelper::Log(String)
Since
1.2.0

Definition at line 177 of file LoggingHelper.java.

◆ LogInfo()

static void Helpers.LoggingHelper.LogInfo ( String msg)
static

to write the info level log information

Parameters
msgthe msg that will be printed as info level log
See also
LoggingHelper::LogError(String)
LoggingHelper::LogDebug(String)
LoggingHelper::LogFunction(String)
LoggingHelper::LogLogic(String)
LoggingHelper::Log(String)
Since
1.2.0

Definition at line 159 of file LoggingHelper.java.

◆ LogLogic()

static void Helpers.LoggingHelper.LogLogic ( String msg)
static

to write the logic level log information

Parameters
msgthe msg that will be printed as logic level log
See also
LoggingHelper::LogError(String)
LoggingHelper::LogDebug(String)
LoggingHelper::LogInfo(String)
LoggingHelper::LogFunction(String)
LoggingHelper::Log(String)
Since
1.2.0

Definition at line 195 of file LoggingHelper.java.

◆ setLogLevel()

static void Helpers.LoggingHelper.setLogLevel ( LogLevel level)
static

to set the log level for the entire app

Parameters
levelThe desired log level
Since
1.2.0

Definition at line 77 of file LoggingHelper.java.


The documentation for this class was generated from the following file: