base/rlp-logger.hpp¶
Namespaces¶
| Name |
|---|
| rlp |
| rlp::base |
Types¶
| Name | |
|---|---|
| using std::shared_ptr< spdlog::logger > | Logger |
Functions¶
| Name | |
|---|---|
| std::shared_ptr< spdlog::logger > | createLogger(const std::string & tag, const std::string & basepath ="") Create a logger instance. |
Types Documentation¶
using Logger¶
Functions Documentation¶
function createLogger¶
std::shared_ptr< spdlog::logger > createLogger(
const std::string & tag,
const std::string & basepath =""
)
Create a logger instance.
Parameters:
- tag Tagging name for identifying logger.
- basepath Optional base path for log output (platform dependent).
Return: Logger object.
Source code¶
#ifndef RLP_LOGGER_HPP
#define RLP_LOGGER_HPP
#include <spdlog/fmt/ostr.h>
#include <spdlog/spdlog.h>
#if defined( ANDROID )
#include <spdlog/sinks/android_sink.h>
#endif
namespace rlp::base
{
using Logger = std::shared_ptr<spdlog::logger>;
Logger createLogger( const std::string &tag, const std::string &basepath = "" );
} // namespace rlp::base
#endif // RLP_LOGGER_HPP
Updated on 2026-04-13 at 23:22:46 -0700