Logger.Log Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Log(Boolean, LoggingLevel, String, Object[]) |
Log a message. |
Log(LoggingLevel, String, Object[]) |
Log a message. |
Log(Boolean, LoggingLevel, String, Object[])
Log a message.
public:
void Log(bool piiCompliant, Microsoft::VisualStudio::Workspace::Logging::LoggingLevel level, System::String ^ message, ... cli::array <System::Object ^> ^ messageArguments);
public void Log (bool piiCompliant, Microsoft.VisualStudio.Workspace.Logging.LoggingLevel level, string message, params object[] messageArguments);
public void Log (bool piiCompliant, Microsoft.VisualStudio.Workspace.Logging.LoggingLevel level, string message, params object?[] messageArguments);
member this.Log : bool * Microsoft.VisualStudio.Workspace.Logging.LoggingLevel * string * obj[] -> unit
Public Sub Log (piiCompliant As Boolean, level As LoggingLevel, message As String, ParamArray messageArguments As Object())
Parameters
- piiCompliant
- Boolean
If the message is PII compliant
- level
- LoggingLevel
level desired for this message
- message
- String
Message being logged
- messageArguments
- Object[]
Message arguments being passed
Applies to
Log(LoggingLevel, String, Object[])
Log a message.
public:
void Log(Microsoft::VisualStudio::Workspace::Logging::LoggingLevel level, System::String ^ message, ... cli::array <System::Object ^> ^ messageArguments);
public void Log (Microsoft.VisualStudio.Workspace.Logging.LoggingLevel level, string message, params object[] messageArguments);
public void Log (Microsoft.VisualStudio.Workspace.Logging.LoggingLevel level, string message, params object?[] messageArguments);
member this.Log : Microsoft.VisualStudio.Workspace.Logging.LoggingLevel * string * obj[] -> unit
Public Sub Log (level As LoggingLevel, message As String, ParamArray messageArguments As Object())
Parameters
- level
- LoggingLevel
level desired for this message
- message
- String
Message being logged
- messageArguments
- Object[]
Message arguments being passed