Table of Contents

Class ConsoleLogger

Namespace
Ranorex.Core
Assembly
Ranorex.Core.dll

The standard Ranorex console logger.

public class ConsoleLogger : IReportLogger
Inheritance
ConsoleLogger
Implements
Inherited Members

Constructors

ConsoleLogger()

public ConsoleLogger()

Properties

PreFilterMessages

Determines whether the logger is called for all log message or only for messages whose report level is greater or equal than the currently set report level.

public bool PreFilterMessages { get; }

Property Value

bool

Methods

End()

Ends logging. Should free all resources.

public void End()

LogData(ReportLevel, string, string, object, IDictionary<string, string>)

Logs a data message.

public void LogData(ReportLevel level, string category, string message, object data, IDictionary<string, string> metaInfos)

Parameters

level ReportLevel

The message level.

category string

The category name.

message string

An optional message for the data.

data object

The message data object.

metaInfos IDictionary<string, string>

Advanced reference information for use in the report.

LogText(ReportLevel, string, string, bool, IDictionary<string, string>)

Logs a text message.

public void LogText(ReportLevel level, string category, string message, bool escape, IDictionary<string, string> metaInfos)

Parameters

level ReportLevel

The message level.

category string

The category name.

message string

The message text.

escape bool

Text escaping flag.

metaInfos IDictionary<string, string>

Advanced reference information for use in the report.

Start()

Starts the logger.

public void Start()