Logger Error Method Delta Engine Documentation
If a fatal exception happened this message is logged. Often the App has to quit afterward. View code on GitHub

Namespace: DeltaEngine.Core
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public static void Error(
	Exception exception
)
Remarks

Tests: DeltaEngine.Tests.Core.LoggerTests
Examples

1 unit tests call DeltaEngine.Core.Logger.Error(System.Exception)
[Test]
public void LogError()
{
    using (var logger = new MockLogger())
    {
        Logger.Error(new ExternalException());
        Assert.IsTrue(logger.LastMessage.Contains(new ExternalException().Message),
            logger.LastMessage);
    }
}
See Also