Table of Contents

Interface ILogger

Namespace
BlueByte.SOLIDWORKS.PDMProfessional.SDK.Diagnostics
Assembly
BlueByte.SOLIDWORKS.PDMProfessional.SDK.dll

Logger.

public interface ILogger

Properties

OutputLocation

Ouput location. Relative path does not work.

string OutputLocation { get; set; }

Property Value

string

Methods

EndConnection()

Ends the connection with the SQLServer

void EndConnection()

GetLoggerType()

Returns the type of the logger.

LoggerType_e GetLoggerType()

Returns

LoggerType_e

Init(Identity, IEdmTaskInstance, string)

Initialize the logger.

void Init(Identity identity, IEdmTaskInstance instance, string connectionString)

Parameters

identity Identity

The identity struct.

instance IEdmTaskInstance

Task instance.

connectionString string

The connection string.

LogToOutput(string, object)

Logs value to output.

void LogToOutput(string target, object value)

Parameters

target string

Text file path. This is the name of the table when GetLoggerType() returns SQL

value object

New value.

StartConnection()

Starts a connection with the SQL server. Call this method after you call Init(Identity, IEdmTaskInstance, string).

void StartConnection()