LogEntry

An entry to be logged.

Namespace:
Inetdev.Diagnostics
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
System.Object

Constructors

LogEntry

Default constructor

Signature:
public Void LogEntry()

LogEntry

Initializes a new instance of LogEntry.

Signature:
public Void LogEntry(message, level, categories, tenantName, activityId, eventId, stopwatch, template, extendedProperties)
Parameters
Name Type Summary
message Object Message to be written.
level LogLevel Log entry level.
categories ICollection<String> Log entry categories.
tenantName String Tenant name.
activityId String Activity Id.
eventId EventId Event Id.
stopwatch Stopwatch An Stopwatch.
template String Template to be used to write this entry.
extendedProperties IDictionary<String, Object> Extended properties.

LogEntry

Initializes a new instance of LogEntry.

Signature:
public Void LogEntry(message, level, category)
Parameters
Name Type Summary
message Object Message to be written.
level LogLevel Log entry level.
category String Log entry category.

LogEntry

Initializes a new instance of LogEntry.

Signature:
public Void LogEntry(message, level, category, tenantName)
Parameters
Name Type Summary
message Object Message to be written.
level LogLevel Log entry level.
category String Log entry category.
tenantName String Tenant name.

LogEntry

Initializes a new instance of LogEntry.

Signature:
public Void LogEntry(message, level, category, tenantName, activityId, eventId, stopwatch, template, extendedProperties)
Parameters
Name Type Summary
message Object Message to be written.
level LogLevel Log entry level.
category String Log entry category.
tenantName String Tenant name.
activityId String Activity Id.
eventId EventId Event Id.
stopwatch Stopwatch An Stopwatch.
template String Template to be used to write this entry.
extendedProperties IDictionary<String, Object> Extended properties.

Properties

ActivityId

Activity Id

Signature:
public String ActivityId { get; set; }

AppDomainName

Application domain name.

Signature:
public String AppDomainName { get; set; }

Categories

Entry categories used to route the log entry.

Signature:
public ICollection<String> Categories { get; set; }

EventId

Event identification.

Signature:
public EventId EventId { get; set; }

ExtendedProperties

Extended properties.

Signature:
public IDictionary<String, Object> ExtendedProperties { get; set; }

Level

Log entry level.

Signature:
public LogLevel Level { get; set; }

MachineName

Machine name.

Signature:
public String MachineName { get; set; }

ManagedThreadId

Id of the thread.

Signature:
public String ManagedThreadId { get; set; }

ManagedThreadName

Thread name.

Signature:
public String ManagedThreadName { get; set; }

Message

Message to be logged.

Signature:
public String Message { get; set; }

Stopwatch

A Stopwatch with timing information.

Signature:
public Stopwatch Stopwatch { get; set; }

Template

The templates used to format the log entry.

Signature:
public String Template { get; set; }

TenantName

Tenant name for multi-tenant applications.

Signature:
public String TenantName { get; set; }

Timestamp

Date and time of the log entry.

Signature:
public DateTime Timestamp { get; set; }

Methods

ToString

Returns a textual repredentation of the log entry.

Signature:
public String ToString()