共用方式為


SPLog Members

Include Protected Members
Include Inherited 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 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.
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.
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method Verbose(String)
Public method Verbose(String, Exception)
Public method Verbose(String, [])
Public method Verbose(String, Exception, [])
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 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.

Top

See Also

Reference

SPLog Class

Microsoft.SharePoint.Upgrade Namespace