WebHostMetricsLogger Class
This implementation of IMetricsLogger flushes metrics to disk on a regular interval. These files are consumed by Antares and imported into our MDS metrics tables.
Namespace: Microsoft.WindowsAzure.Mobile.Service.Diagnostics
Assembly: Microsoft.WindowsAzure.Mobile.Service.WebHost (in Microsoft.WindowsAzure.Mobile.Service.WebHost.dll)
Inheritance Hierarchy
System.Object
Microsoft.WindowsAzure.Mobile.Service.Diagnostics.WebHostMetricsLogger
Syntax
public class WebHostMetricsLogger : IMetricsLogger, IRegisteredObject,
IDisposable
public ref class WebHostMetricsLogger : IMetricsLogger, IRegisteredObject,
IDisposable
type WebHostMetricsLogger =
class
interface IMetricsLogger
interface IRegisteredObject
interface IDisposable
end
Public Class WebHostMetricsLogger
Implements IMetricsLogger, IRegisteredObject, IDisposable
Constructors
Name | Description | |
---|---|---|
WebHostMetricsLogger(ServiceSettingsDictionary) | ||
WebHostMetricsLogger(ServiceSettingsDictionary, Int32) |
Properties
Name | Description | |
---|---|---|
QueuedEvents | Gets the collection of events that will be flushed on the next flush interval. |
Methods
Name | Description | |
---|---|---|
BeginEvent(String) | ||
CreateLogFolder(String) | ||
CreateTimer(Int32) | ||
Dispose() | ||
Dispose(Boolean) | ||
EndEvent(Object) | ||
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetLogFilePath() | Get a unique path to a new log file. |
|
GetType() | (Inherited from Object.) |
|
LogEvent(String) | ||
MemberwiseClone() | (Inherited from Object.) |
|
RegisterObject(IRegisteredObject) | ||
Start() | Initializes and starts the logger, including the flush timer. |
|
Stop(Boolean) | This method is called by the ASP.NET infrastructure when ASP.NET is about to take down the app domain. See IRegisteredObject for more information. |
|
TimerFlush(Object) | Flush any queued events to disk immediately. |
|
ToString() | (Inherited from Object.) |
|
UnregisterObject(IRegisteredObject) | ||
WriteLogFile(String, IEnumerable<String>) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.WindowsAzure.Mobile.Service.Diagnostics Namespace
Return to top