Initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
namespace RudderSdk.Core.Abstractions;
|
||||
|
||||
/// <summary>Severity of an SDK log message.</summary>
|
||||
public enum RudderLogLevel
|
||||
{
|
||||
/// <summary>Verbose diagnostics.</summary>
|
||||
Debug,
|
||||
|
||||
/// <summary>Normal operational messages.</summary>
|
||||
Info,
|
||||
|
||||
/// <summary>Recoverable problems worth investigating.</summary>
|
||||
Warning,
|
||||
|
||||
/// <summary>Failures that broke an operation.</summary>
|
||||
Error
|
||||
}
|
||||
|
||||
/// <summary>Optional sink for SDK diagnostics. Null by default (silent).</summary>
|
||||
public interface IRudderLogger
|
||||
{
|
||||
/// <summary>Writes one message at the given severity.</summary>
|
||||
void Log(RudderLogLevel level, string message);
|
||||
}
|
||||
Reference in New Issue
Block a user