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
identity
IdentityThe identity struct.
instance
IEdmTaskInstanceTask instance.
connectionString
stringThe connection string.
LogToOutput(string, object)
Logs value to output.
void LogToOutput(string target, object value)
Parameters
target
stringText file path. This is the name of the table when GetLoggerType() returns SQL
value
objectNew value.
StartConnection()
Starts a connection with the SQL server. Call this method after you call Init(Identity, IEdmTaskInstance, string).
void StartConnection()