20 lines
684 B
C#
20 lines
684 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);
|
|
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);
|
|
|
|
}
|
|
}
|