/// <summary> /// 例外ログ /// </summary> public static void LOG_EXCEPTION(Exception e) { if (enableLogging) { Logger.Log(className(), OpeLog.Level.CRIT, Loggable.GetExceptionMessage(e), false); } }
/// <summary> /// 実行時間計測の準備をする /// </summary> /// <param name="logger_">計測結果を出力するときに使うLoggableオブジェクト</param> public Measure(Loggable logger_ = null) { NThread nth = CurrentThread; if (nth == null) { throw new InvalidOperationException("Can't measure time outside NThread's thread"); } threadName = "[" + nth.Name + "]"; logger = (logger_ ?? nth).Logger; }