qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches
io.h File Reference

Core I/O and logging utilities for the qb framework. More...

#include <iostream>
#include <mutex>
#include <sstream>
#include <type_traits>
#include <utility>
Include dependency graph for io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  qb::io::cout
 Thread-safe console output class. More...
class  qb::io::cerr
 Thread-safe error output class. More...

Macros

#define LOG_DEBUG(X)
 Debug-level log macro (no-op if QB_STDOUT_LOG is not defined)
#define LOG_VERB(X)
 Verbose-level log macro (no-op if QB_STDOUT_LOG is not defined)
#define LOG_INFO(X)
 Info-level log macro (no-op if QB_STDOUT_LOG is not defined)
#define LOG_WARN(X)
 Warning-level log macro (no-op if QB_STDOUT_LOG is not defined)
#define LOG_CRIT(X)
 Critical-level log macro (no-op if QB_STDOUT_LOG is not defined)

Detailed Description

Core I/O and logging utilities for the qb framework.

This file provides basic I/O functionality and logging utilities for the qb framework. It includes a thread-safe console output class and logging macros that can be configured at compile time.

Author
qb - C++ Actor Framework

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Macro Definition Documentation

◆ LOG_DEBUG

#define LOG_DEBUG ( X)
Value:
do { \
} while (false)

Debug-level log macro (no-op if QB_STDOUT_LOG is not defined)

Parameters
XMessage to log

◆ LOG_VERB

#define LOG_VERB ( X)
Value:
do { \
} while (false)

Verbose-level log macro (no-op if QB_STDOUT_LOG is not defined)

Parameters
XMessage to log

◆ LOG_INFO

#define LOG_INFO ( X)
Value:
do { \
} while (false)

Info-level log macro (no-op if QB_STDOUT_LOG is not defined)

Parameters
XMessage to log

◆ LOG_WARN

#define LOG_WARN ( X)
Value:
do { \
} while (false)

Warning-level log macro (no-op if QB_STDOUT_LOG is not defined)

Parameters
XMessage to log

◆ LOG_CRIT

#define LOG_CRIT ( X)
Value:
do { \
} while (false)

Critical-level log macro (no-op if QB_STDOUT_LOG is not defined)

Parameters
XMessage to log