Beispiel #1
0
        public static void Log(this object obj, string format, params object[] args)
        {
            if (!MyLogger.EnableLog)
            {
                return;
            }

            MyLogger.Log(GetLogTag(obj), GetLogCallerMethod(), string.Format(format, args));
        }
Beispiel #2
0
        public static void Log(this object obj, string message = "")
        {
            if (!MyLogger.EnableLog)
            {
                return;
            }

            MyLogger.Log(GetLogTag(obj), GetLogCallerMethod(), (string)message);
        }