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
Methods
EndConnection()
Ends the connection with the SQLServer
void EndConnection()
GetLoggerType()
Returns the type of the logger.
LoggerType_e GetLoggerType()
Returns
Init(Identity, IEdmTaskInstance, string)
Initialize the logger.
void Init(Identity identity, IEdmTaskInstance instance, string connectionString)
Parameters
identityIdentityThe identity struct.
instanceIEdmTaskInstanceTask instance.
connectionStringstringThe connection string.
LogToOutput(string, object)
Logs value to output.
void LogToOutput(string target, object value)
Parameters
targetstringText file path. This is the name of the table when GetLoggerType() returns SQL
valueobjectNew value.
StartConnection()
Starts a connection with the SQL server. Call this method after you call Init(Identity, IEdmTaskInstance, string).
void StartConnection()