TestLogType

PackageAxial.PlatformService
A test double for ILog that records entries for assertions.

Specification

Kind
Type
Members
5
Examples
0
``.ctor``Signature
TestLog()
ClearSignature
this.Clear
LogSignature
this.Log
LogExceptionSignature
this.LogException
EntriesSignature
this.Entries

Summary

NameSignatureSynopsis
Operations
``.ctor``TestLog()No description available.
Clearthis.ClearRemoves all recorded entries.
Logthis.LogRecords a message at the supplied level.
LogExceptionthis.LogExceptionRecords a message carrying an exception at the supplied level.
Entriesthis.EntriesThe recorded entries, in the order they were written.

Operations

kind:typekind:member

``.ctor``

TestLog()
Member

Returns

TestLog
kind:member

Clear

this.Clear
Member
Removes all recorded entries.

Returns

unit
kind:member

Log

this.Log
Member
Records a message at the supplied level.

Parameters

NameTypeDescription
levelLogLevel
messagestring

Returns

unit
kind:member

LogException

this.LogException
Member
Records a message carrying an exception at the supplied level.

Parameters

NameTypeDescription
levelLogLevel
errorexn
messagestring

Returns

unit
kind:member

Entries

this.Entries
Member
The recorded entries, in the order they were written.

Returns

IReadOnlyList<LogEntry>