public void LogWarning(string message, params object[] messageArgs) { var logEntry = new PsXdtConfigTransformLogEntry() { Message = message, MessageArgs = messageArgs }; _cmdlet.WriteWarning(logEntry.ToString()); }
public void EndSection(string message, params object[] messageArgs) { var logEntry = new PsXdtConfigTransformLogEntry() { Message = message, MessageArgs = messageArgs }; _cmdlet.WriteVerbose(logEntry.ToString()); }
public void LogMessage(MessageType type, string message, params object[] messageArgs) { var logEntry = new PsXdtConfigTransformLogEntry() { MessageType = type.ToString(), Message = message, MessageArgs = messageArgs }; _cmdlet.WriteVerbose(logEntry.ToString()); }
public void LogErrorFromException(Exception ex) { var logEntry = new PsXdtConfigTransformLogEntry() { Exception = ex }; var exception = new InvalidOperationException(logEntry.ToString()); _cmdlet.WriteError(new ErrorRecord(exception, null, ErrorCategory.InvalidOperation, null)); }
public void LogError(string message, params object[] messageArgs) { var logEntry = new PsXdtConfigTransformLogEntry() { Message = message, MessageArgs = messageArgs }; var exception = new InvalidOperationException(logEntry.ToString()); _cmdlet.WriteError(new ErrorRecord(exception, null, ErrorCategory.InvalidOperation, null)); }
public void LogWarning(string file, int lineNumber, int linePosition, string message, params object[] messageArgs) { var logEntry = new PsXdtConfigTransformLogEntry() { File = file, LineNumber = lineNumber, LinePosition = linePosition, Message = message, MessageArgs = messageArgs }; _cmdlet.WriteWarning(logEntry.ToString()); }
public void LogErrorFromException(Exception ex, string file, int lineNumber, int linePosition) { var logEntry = new PsXdtConfigTransformLogEntry() { File = file, Exception = ex, LineNumber = lineNumber, LinePosition = linePosition }; var exception = new InvalidOperationException(logEntry.ToString()); _cmdlet.WriteError(new ErrorRecord(exception, null, ErrorCategory.InvalidOperation, null)); }