コード例 #1
0
 private void LogResult(IIdentity result, string opid)
 {
     if (!result.IsAuthenticated)
     {
         if (Logg.IsForWarn())
         {
             Logg.Warn(new { logonid = opid, auth = false, result }.stringify());
         }
     }
     else
     {
         if (Logg.IsForInfo())
         {
             Logg.Info(new { logonid = opid, auth = true, result }.stringify());
         }
     }
 }