IVsCommandWindow::LogToFile Method (String^, UInt32)

 

Starts logging command-window commands and output to the specified file.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int LogToFile(
	String^ szLogFile,
	unsigned int grfFlags
)

Parameters

szLogFile
Type: System::String^

[in] Filename to use for the log.

grfFlags
Type: System::UInt32

[in] Bit flags indicating logging options. Use values from the LOGTOFILEOPTION enumeration.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell.idl:

HRESULT IVsCommandWindow::LogToFile(
   [in, ref] LPCOLESTR szLogFile, 
   [in] LOGTOFILEOPTIONS grfFlags
);
Return to top
Show: