2022-09-30 09:40:42 -07:00

20 lines
689 B
C#

using System.Collections.Generic;
using System;
using Church.Net.Entity;
using Church.Net.Entity.Interface;
namespace WebAPI.Services.Interfaces
{
public interface ILoggingService
{
void Log(string message, object detail=null);
void Warning(string message, object detail);
int Error(Exception exception);
int Error(Exception exception, string from);
int Error(Exception exception, string from, string detailMsg);
IEnumerable<LogInfo> GetAllErrors(DateTime? rangeStart = null, DateTime? rangeEnd = null);
IEnumerable<LogInfo> GetAllLogs(LogLevel logLevel, DateTime? rangeStart = null, DateTime? rangeEnd = null);
}
}