Share via


SPLog members

Represents the Microsoft SharePoint Foundation upgrade log.

The SPLog type exposes the following members.

Methods

  Name Description
Public method Debug(String) Writes the specified message to the upgrade event log as an information-only message.
Public method Debug(String, Exception) Writes the specified string and exception to the upgrade event log as a information-only message.
Public method Debug(String, []) Writes the specified string and the specified objects to the upgrade event log as an information-only message.
Public method Debug(String, Exception, []) Writes the specified string, exception, and specified objects to the upgrade event log as an information-only message.
Public method DebugTag(UInt32, String) Shorthand of [WriteLog(stringmessage,LogLevellevel)]. Use[LogLevel.Debug].
Public method DebugTag(UInt32, String, Exception) Shorthand of [WriteLog(stringmessage,Exceptionexception,LogLevellevel)]. Use[LogLevel.Debug].
Public method DebugTag(UInt32, String, []) Shorthand of [WriteLog(stringformat,LogLevellevel,paramsobject[]args)]. Use[LogLevel.Debug].
Public method DebugTag(UInt32, String, Exception, []) Shorthand of [WriteLog(stringmessage,Exceptionexception,LogLevellevel,paramsobject[]args)]. Use[LogLevel.Debug].
Public method Equals (Inherited from Object.)
Public method Error(String) Writes the specified string to the upgrade log as an error. This call will cause the upgrade session that contains the SPLog to increase its error count by one. An upgrade session that contains one or more errors is considered to have failed.
Public method Error(String, Exception) Writes the specified string and exception to the upgrade log as an error. This call will cause the upgrade session that contains the SPLog to increase its error count by one. An upgrade session that contains one or more errors is considered to have failed.
Public method Error(String, []) Writes the specified string and object to the upgrade log as an error. This call will cause the upgrade session that contains the SPLog to increase its error count by one. An upgrade session that contains one or more errors is considered to have failed.
Public method Error(SPUpgradeSession, String) Writes the specified error message to the upgrade event log specified by the user. This call will cause the upgrade session that contains the SPLog to increase its error count by one. An upgrade session that contains one or more errors is considered to have failed.
Public method Error(String, Exception, []) Writes the specified string, exception, and a list of objects to the upgrade log as an error. This call will cause the upgrade session that contains the SPLog to increase its error count by one. An upgrade session that contains one or more errors is considered to have failed.
Public method ErrorTag(UInt32, String) Shorthand of [WriteLog(stringmessage,LogLevellevel)]. Use[LogLevel.Error].
Public method ErrorTag(UInt32, SPUpgradeSession, String) Log an error, to a file specified by the caller. This is useful when logging to a non-active session
Public method ErrorTag(UInt32, String, Exception) Shorthand of [WriteLog(stringmessage,Exceptionexception,LogLevellevel)]. Use[LogLevel.Error].
Public method ErrorTag(UInt32, String, []) Shorthand of [WriteLog(stringmessage,LogLevellevel)]. Use[LogLevel.Error].
Public method ErrorTag(UInt32, String, Exception, []) Shorthand of [WriteLog(stringmessage,Exceptionexception,LogLevellevel)]. Use[LogLevel.Error].
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public methodStatic member GetInstance(String) Returns an instance of the log object that belongs to the specified category.
Public methodStatic member GetInstance(Type) Returns an instance of the log object that belongs to the specified type.
Public methodStatic member GetInstance(Type, MethodInfo) Returns an instance of the log object that belongs to the specified type based on the specified method information.
Public method GetType (Inherited from Object.)
Public method Info(String) Writes the specified message to the upgrade event log as an information-only message.
Public method Info(String, Exception) Writes the specified message and exception to the upgrade event log as an information-only message.
Public method Info(String, []) Writes the specified string and specified objects to the upgrade event log as an information-only message.
Public method Info(String, Exception, []) Writes the specified string, exception, and specified objects to the upgrade event log as an information-only message.
Public method InfoTag(UInt32, String) Shorthand of [WriteLog(stringmessage,LogLevellevel)]. Use[LogLevel.Info].
Public method InfoTag(UInt32, String, Exception) Shorthand of [WriteLog(stringmessage,Exceptionexception,LogLevellevel)]. Use[LogLevel.Info].
Public method InfoTag(UInt32, String, []) Shorthand of [WriteLog(stringformat,LogLevellevel,paramsobject[]args)]. Use[LogLevel.Info].
Public method InfoTag(UInt32, String, Exception, []) Shorthand of [WriteLog(stringmessage,Exceptionexception,LogLevellevel)]. Use[LogLevel.Info].
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method Verbose(String) Shorthand of [WriteLog(stringmessage,LogLevellevel)]. Use[LogLevel.Info].
Public method Verbose(String, Exception) Shorthand of [WriteLog(stringmessage,Exceptionexception,LogLevellevel)]. Use[LogLevel.Debug].
Public method Verbose(String, []) Shorthand of [WriteLog(stringformat,LogLevellevel,paramsobject[]args)]. Use[LogLevel.Verbose].
Public method Verbose(String, Exception, []) Shorthand of [WriteLog(stringmessage,Exceptionexception,LogLevellevel,paramsobject[]args)]. Use[LogLevel.Debug].
Public method VerboseTag(UInt32, String) Shorthand of [WriteLog(stringmessage,LogLevellevel)]. Use[LogLevel.Info].
Public method VerboseTag(UInt32, String, Exception) Shorthand of [WriteLog(stringmessage,Exceptionexception,LogLevellevel)]. Use[LogLevel.Debug].
Public method VerboseTag(UInt32, String, []) Shorthand of [WriteLog(stringformat,LogLevellevel,paramsobject[]args)]. Use[LogLevel.Verbose].
Public method VerboseTag(UInt32, String, Exception, []) Shorthand of [WriteLog(stringmessage,Exceptionexception,LogLevellevel,paramsobject[]args)]. Use[LogLevel.Debug].
Public method Warning(String) Writes the specified string to the upgrade log as a warning. This call will cause the upgrade session that contains the SPLog to increase its warning count by one. An upgrade session that contains one or more warnings is considered to be successful.
Public method Warning(String, Exception) Writes the specified string and exception to the upgrade log as a warning. This call will cause the upgrade session that contains the SPLog to increase its warning count by one. An upgrade session that contains one or more warnings is considered to be successful.
Public method Warning(String, []) Writes the specified string and list of objects to the upgrade log as a warning. This call will cause the upgrade session that contains the SPLog to increase its warning count by one. An upgrade session that contains one or more warnings is considered to be successful.
Public method Warning(String, Exception, []) Writes the specified string, exception and list of objects to the upgrade log as a warning. This call will cause the upgrade session that contains the SPLog to increase its warning count by one. An upgrade session that contains one or more warnings is considered to be successful.
Public method WarningTag(UInt32, String) Shorthand of [WriteLog(stringmessage,LogLevellevel)]. Use[LogLevel.Warning].
Public method WarningTag(UInt32, String, Exception) Shorthand of [WriteLog(stringmessage,Exceptionexception,LogLevellevel)]. Use[LogLevel.Warning].
Public method WarningTag(UInt32, String, []) Shorthand of [WriteLog(stringformat,LogLevellevel,paramsobject[]args)]. Use[LogLevel.Warning].
Public method WarningTag(UInt32, String, Exception, []) Shorthand of [WriteLog(stringmessage,Exceptionexception,LogLevellevel)]. Use[LogLevel.Warning].
Public method WriteLog(String, LogLevel) Writes the specified message to the upgrade event log based on the specified log level.
Public method WriteLog(String, LogLevel, []) Writes the specified message to the upgrade event log based on the specified log level.
Public method WriteLog(String, Exception, LogLevel) Writes the specified message and exception to the upgrade event log based on the specified log level.
Public method WriteLog(String, Exception, LogLevel, []) Writes the specified message to the upgrade event log based on the specified log level.
Public method WriteLogTag(UInt32, String, LogLevel) Logs the given message with given log level.
Public method WriteLogTag(UInt32, String, LogLevel, []) Logs the given formatted message with the given log level
Public method WriteLogTag(UInt32, String, Exception, LogLevel) Shorthand of [WriteLog(stringmessage,LogLevellevel)]. Logs both the message and the exception stack trace as message.
Public method WriteLogTag(UInt32, String, Exception, LogLevel, []) Shorthand of [WriteLog(stringmessage,LogLevellevel)]. Logs both the message and the exception stack trace as message.
Public method WriteToConsole

Top

See also

Reference

SPLog class

Microsoft.SharePoint.Upgrade namespace