dtlauncher/.old 6/DTLib/PublicLog.cs

17 lines
534 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace DTLib
{
//
// вывод логов со всех классов в библиотеке
//
public static class PublicLog
{
public delegate void LogDelegate(string[] msg);
// вот к этому объекту подключайте методы для вывода логов
public static LogDelegate LogDel;
// этот метод вызывается в библиотеке
public static void Log(params string[] msg)
=> LogDel(msg);
}
}