diff options
author | Gert Driesen <drieseng@users.sourceforge.net> | 2006-08-11 14:32:58 +0400 |
---|---|---|
committer | Gert Driesen <drieseng@users.sourceforge.net> | 2006-08-11 14:32:58 +0400 |
commit | c11d92c6dbaadcfa90a499cb6267adcc95ad1b2d (patch) | |
tree | 38cae0873b3f94d0a351e8b53023a0db96248c48 /mcs/class/System/System.Diagnostics/EventSourceCreationData.cs | |
parent | 7b4d8a2f6b99e8ad3129e2ba20b50130e394a317 (diff) |
* EventLogTest.cs: new test, currently not enabled due to UnixRegistry
bug which still needs to be tracked, and which would cause temporary
registry entries to be left behind by running tests.
* EventLogEntry.cs: Added InstanceId property (2.0 only). Moved
Obsolete attribute to correct property.
* EventSourceCreationData.cs: Updated copyright. For internal ctor,
set log name to "Application" if value is null or zero-length string.
* EventLogImpl.cs: EventImpl now acts as base class for event log
implemenations. Added NullEventLog implementation, which is not used
at the moment.
* EventLog.cs: EventLog implementation that uses registry for
keeping track of logs and sources to match .NET (and Windows). When
running on Windows NT (and higher), event entries are written to
the native win32 event log. Reading event entries is not yet working
for Windows. On linux, we use a local file store (based on patch by
Atsushi).
* UnixEventLog.cs: Event log implementation for linux which uses a
local file store.
* Win32EventLog.cs: Event log implementation for Windows NT and
higher which uses the Win32 native event log.
* EventLogEntryCollection.cs: Delegate implementation to event log
implemenation. Use lazy init for enumerating entries.
* System.dll.sources: Added UnixEventLog.cs and Win32EventLog.cs.
* System_test.dll.sources: Added EventLogTest.cs.
svn path=/trunk/mcs/; revision=63633
Diffstat (limited to 'mcs/class/System/System.Diagnostics/EventSourceCreationData.cs')
-rw-r--r-- | mcs/class/System/System.Diagnostics/EventSourceCreationData.cs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/mcs/class/System/System.Diagnostics/EventSourceCreationData.cs b/mcs/class/System/System.Diagnostics/EventSourceCreationData.cs index e1ebb5a2388..33536091247 100644 --- a/mcs/class/System/System.Diagnostics/EventSourceCreationData.cs +++ b/mcs/class/System/System.Diagnostics/EventSourceCreationData.cs @@ -1,10 +1,10 @@ // // System.Diagnostics.EventSourceCreationData // -// Authors: -// Gert Driesen (drieseng@users.sourceforge.net) +// Author: +// Gert Driesen <driesen@users.sourceforge.net> // -// (C) 2006 Novell +// Copyright (C) 2006 Novell, Inc (http://www.novell.com) // // // Permission is hereby granted, free of charge, to any person obtaining @@ -52,7 +52,11 @@ namespace System.Diagnostics internal EventSourceCreationData (string source, string logName, string machineName) { _source = source; - _logName = logName; + if (logName == null || logName.Length == 0) { + _logName = "Application"; + } else { + _logName = logName; + } _machineName = machineName; } |