﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Substructio.Logging
{
    public interface IErrorReporting
    {
        void ReportError(Exception e);
        void ReportMessage(string message);
    }

    public class NullErrorReporting : IErrorReporting
    {
        public void ReportError(Exception e) { }

        public void ReportMessage(string message) { }
    }
}

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Substructio.Logging
{
    public interface IErrorReporting
    {
        string ReportError(Exception e);
        string ReportMessage(string message);
    }

    public class NullErrorReporting : IErrorReporting
    {
        public string ReportError(Exception e) { return ""; }

        public string ReportMessage(string message) { return ""; }
    }
}

Return even information in string for error reporting
Return even information in string for error reporting

