Ejemplo n.º 1
0
 public static IDataReader GetPageDescending(
     int pageNumber,
     int pageSize,
     out int totalPages)
 {
     return(DBSystemLog.GetPageDescending(pageNumber, pageSize, out totalPages));
 }
Ejemplo n.º 2
0
        public static int Log(
            string ipAddress,
            string culture,
            string url,
            string thread,
            string logLevel,
            string logger,
            string message)
        {
            string shortUrl = null;

            if (!string.IsNullOrEmpty(url))
            {
                if (url.Length >= 255)
                {
                    shortUrl = url.Substring(0, 255);
                }
                else
                {
                    shortUrl = url;
                }
            }

            return(DBSystemLog.Create(
                       DateTime.UtcNow,
                       ipAddress,
                       culture,
                       url,
                       shortUrl,
                       thread,
                       logLevel,
                       logger,
                       message));
        }
Ejemplo n.º 3
0
 public static bool DeleteByLevel(string logLevel)
 {
     return(DBSystemLog.DeleteByLevel(logLevel));
 }
Ejemplo n.º 4
0
 public static bool DeleteOlderThan(DateTime cutoffDate)
 {
     return(DBSystemLog.DeleteOlderThan(cutoffDate));
 }
Ejemplo n.º 5
0
 public static bool Delete(int id)
 {
     return(DBSystemLog.Delete(id));
 }
Ejemplo n.º 6
0
 public static void DeleteAll()
 {
     DBSystemLog.DeleteAll();
 }