Class Log
The global object which receives logging messages that be shown to the user at the finish of postprocessing.
Inheritance
Inherited Members
Namespace: SprutTechnology.SCPostprocessor
Assembly: SCPostprocessor.dll
Syntax
public static class Log
Properties
Receiver
The link to an object which actually keeps the logs.
Declaration
public static IPostprocessingLogReceiver Receiver { get; set; }
Property Value
| Type | Description |
|---|---|
| IPostprocessingLogReceiver |
Methods
Error(String)
Adds an error message to the list of logs.
Declaration
public static void Error(string Msg)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | Msg | The text of the message. |
Exception(Exception)
Adds a message about exception in the programm to the list of logs.
Declaration
public static void Exception(Exception e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Exception | e | The link to exception. |
Info(String)
Adds some informational message to the list of logs.
Declaration
public static void Info(string Msg)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | Msg | The text of the message. |
MessageBox(String, String)
Shows the standard message box window immediately.
Declaration
public static MsgClickedBtn MessageBox(string message, string caption)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The text of the message. |
| System.String | caption | The header for the window. |
Returns
| Type | Description |
|---|---|
| MsgClickedBtn | Returns the type of button the user clicked. |
MessageBox(String, String, MsgType)
Shows the standard message box window immediately.
Declaration
public static MsgClickedBtn MessageBox(string message, string caption, MsgType messageType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The text of the message. |
| System.String | caption | The header for the window. |
| MsgType | messageType | The type of message (error, question, warning, info). |
Returns
| Type | Description |
|---|---|
| MsgClickedBtn | Returns the type of button the user clicked. |
MessageBox(String, String, MsgType, MsgBtnSet, MsgDefBtn)
Shows the standard message box window immediately.
Declaration
public static MsgClickedBtn MessageBox(string message, string caption, MsgType messageType, MsgBtnSet buttons, MsgDefBtn defaultButton)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The text of the message. |
| System.String | caption | The header for the window. |
| MsgType | messageType | The type of message (error, question, warning, info). |
| MsgBtnSet | buttons | The set of buttons that should be shown in the window. |
| MsgDefBtn | defaultButton | The button that should be default. |
Returns
| Type | Description |
|---|---|
| MsgClickedBtn | Returns the type of button the user clicked. |
Warning(String)
Adds some warning message to the list of logs.
Declaration
public static void Warning(string Msg)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | Msg | The text of the message. |