SubscriptionEventHandlerBaseCreateLogger Method Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Creates the logger object that logs events to its implementation of the ISysLogWriter interface.

Namespace: ContentStudio.Document.Subscription.EventHandler
Assembly: CSSubscriptionEventHandler (in CSSubscriptionEventHandler.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

protected virtual void CreateLogger()
Exceptions

ExceptionCondition
InvalidOperationExceptionLogger is already created.
TypeLoadExceptionCannot load type indicated by the ContentStudio.ServiceManager.Logging.ISysLogWriter extended property
IOExceptionCannot locate the assembly file indicated by the ContentStudio.ServiceManager.Logging.ISysLogWriter extended property
TargetInvocationException
ArgumentException
InvalidCastExceptionthe created assembly does not implement ISysLogWriter
Remarks

You cannot create a logger more that once.

This method is called by the base class during initialization and developers can override this method to create their own logger instead of the logger indicated by the ContentStudio.ServiceManager.Logging.ISysLogWriter extended property.

See Also

Reference