summaryrefslogtreecommitdiff
path: root/log.cpp
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2024-09-25 17:34:52 -0400
committerGlenn Smith <glenn@vector35.com>2024-10-14 16:58:47 -0400
commit7949573575297807243040469279622396817803 (patch)
treee182525bfd808720514f8782b44780315c4d833c /log.cpp
parent9779664178534903236695755478467025901462 (diff)
Add missing Logger::Indent functions
Diffstat (limited to 'log.cpp')
-rw-r--r--log.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/log.cpp b/log.cpp
index f9e5029e..0920be16 100644
--- a/log.cpp
+++ b/log.cpp
@@ -380,6 +380,24 @@ size_t Logger::GetSessionId()
}
+void Logger::Indent()
+{
+ BNLoggerIndent(m_object);
+}
+
+
+void Logger::Dedent()
+{
+ BNLoggerDedent(m_object);
+}
+
+
+void Logger::ResetIndent()
+{
+ BNLoggerResetIndent(m_object);
+}
+
+
Ref<Logger> LogRegistry::CreateLogger(const std::string& loggerName, size_t sessionId)
{
return new Logger(BNLogCreateLogger(loggerName.c_str(), sessionId));