From 6dc99ffef166648259dcbee7c3c93b3f39da16fc Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 24 Jun 2009 09:23:57 +0000 Subject: [PATCH] Core: CloseStdLog git-svn-id: svn://ultimatepp.org/upp/trunk@1332 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Debug.cpp | 5 +++++ uppsrc/Core/Diag.h | 1 + 2 files changed, 6 insertions(+) diff --git a/uppsrc/Core/Debug.cpp b/uppsrc/Core/Debug.cpp index be6a0a878..9bbd05c42 100644 --- a/uppsrc/Core/Debug.cpp +++ b/uppsrc/Core/Debug.cpp @@ -91,6 +91,11 @@ LogStream& StdLogStream() return *s; } +void CloseStdLog() +{ + StdLogStream().Close(); +} + void StdLogSetup(dword options) { StdLogStream().SetOptions(options); diff --git a/uppsrc/Core/Diag.h b/uppsrc/Core/Diag.h index 02ead7d2e..c8db6fc53 100644 --- a/uppsrc/Core/Diag.h +++ b/uppsrc/Core/Diag.h @@ -69,6 +69,7 @@ void SetVppLog(Stream& log); void SetVppLogName(const String& file); void SetVppLogSizeLimit(int filesize); void SetVppLogNoDeleteOnStartup(); +void CloseStdLog(); void HexDump(Stream& s, const void *ptr, int size, int maxsize = INT_MAX);