2018-02-26 19:08:47 +01:00
|
|
|
//
|
|
|
|
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2018
|
|
|
|
//
|
|
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
//
|
|
|
|
#include "td/telegram/Log.h"
|
|
|
|
|
|
|
|
#include "td/utils/port/CxCli.h"
|
|
|
|
|
2018-02-28 11:25:07 +01:00
|
|
|
#include <cstdint>
|
|
|
|
|
2018-02-28 02:11:29 +01:00
|
|
|
namespace Telegram {
|
|
|
|
namespace Td {
|
2018-02-28 00:09:23 +01:00
|
|
|
|
2018-02-26 19:08:47 +01:00
|
|
|
using namespace CxCli;
|
2018-02-28 00:09:23 +01:00
|
|
|
|
2018-02-26 19:08:47 +01:00
|
|
|
public ref class Log sealed {
|
|
|
|
public:
|
|
|
|
static void SetFilePath(String^ filePath) {
|
|
|
|
::td::Log::set_file_path(string_to_unmanaged(filePath));
|
|
|
|
}
|
|
|
|
|
|
|
|
static void SetMaxFileSize(std::int64_t maxFileSize) {
|
|
|
|
::td::Log::set_max_file_size(maxFileSize);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void SetVerbosityLevel(int verbosityLevel) {
|
|
|
|
::td::Log::set_verbosity_level(verbosityLevel);
|
|
|
|
}
|
|
|
|
};
|
2018-02-28 00:09:23 +01:00
|
|
|
|
2018-02-28 02:11:29 +01:00
|
|
|
} // namespace Td
|
|
|
|
} // namespace Telegram
|