Class DebugLogger
Log the content to both Console and Debug (showing in visual studio)
Inheritance
Namespace: AxaFrance.WebEngine
Assembly: AxaFrance.WebEngine.dll
Syntax
public static class DebugLogger
Methods
| Improve this Doc View SourceWriteError(String)
Writes a message in both Console and Debug view of visual Studio. in Red Text
Declaration
public static void WriteError(string content)
Parameters
Type | Name | Description |
---|---|---|
System.String | content | the content of the log to be written |
Remarks
Messages written in console will be shown on screen and will be transmitted to the client side when using remote testing. Messages written on Debug view will allow 3rd test framework such as NUnit and/or Spec-flow to capture the test result in the report. The Error message are writtin in Red color, but not in ErrorStream. Some CI Pipe line consider technical errors and stops the step from running if any messages are writen in Error Stream.
WriteLine(String)
Writes a message in both Console and Debug view of visual studio.
Declaration
public static void WriteLine(string content)
Parameters
Type | Name | Description |
---|---|---|
System.String | content | the content of the log to be written |
Remarks
When developing test actions, use this method to ensure the log is written both on console and Debug view.
Messages written in console will be shown on screen and will be transmitted to the client side when using remote testing. Messages written on Debug view will allow 3rd test framework such as NUnit and/or Spec-flow to capture the test result in the report.
WriteLine(StringBuilder)
Writes a message in both Console and Debug view of visual studio.
Declaration
public static void WriteLine(StringBuilder content)
Parameters
Type | Name | Description |
---|---|---|
System.Text.StringBuilder | content | the content of the log to be written |
Remarks
When developing test actions, use this method to ensure the log is written both on console and Debug view.
Messages written in console will be shown on screen and will be transmitted to the client side when using remote testing. Messages written on Debug view will allow 3rd test framework such as NUnit and/or Spec-flow to capture the test result in the report.
WriteWarning(String)
Writes a Warning message on the console with Yellow color. Warning is not considered as Error.
Declaration
public static void WriteWarning(string content)
Parameters
Type | Name | Description |
---|---|---|
System.String | content |