You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
734 B
27 lines
734 B
// License: Apache 2.0. See LICENSE file in root directory.
|
|
// Copyright(c) 2017 Intel Corporation. All Rights Reserved.
|
|
|
|
namespace Intel.RealSense
|
|
{
|
|
public static class Log
|
|
{
|
|
public static void ToConsole(LogSeverity severity)
|
|
{
|
|
object err;
|
|
NativeMethods.rs2_log_to_console(severity, out err);
|
|
}
|
|
|
|
public static void ToFile(LogSeverity severity, string filename)
|
|
{
|
|
object err;
|
|
NativeMethods.rs2_log_to_file(severity, filename, out err);
|
|
}
|
|
|
|
public static void LogMessage(LogSeverity severity, string message)
|
|
{
|
|
object err;
|
|
NativeMethods.rs2_log(severity, message, out err);
|
|
}
|
|
}
|
|
}
|