Index: src/Util/PatternStringConverters/EnvironmentPatternConverter.cs
===================================================================
--- src/Util/PatternStringConverters/EnvironmentPatternConverter.cs (revision 582971)
+++ src/Util/PatternStringConverters/EnvironmentPatternConverter.cs (working copy)
@@ -64,6 +64,21 @@
{
// Lookup the environment variable
string envValue = Environment.GetEnvironmentVariable(this.Option);
+
+#if NET_2_0
+ // If we didn't see it for the process, try a user level variable.
+ if (envValue == null)
+ {
+ envValue = Environment.GetEnvironmentVariable(this.Option, EnvironmentVariableTarget.User);
+ }
+
+ // If we still didn't find it, try a system level one.
+ if (envValue == null)
+ {
+ envValue = Environment.GetEnvironmentVariable(this.Option, EnvironmentVariableTarget.Machine);
+ }
+#endif
+
if (envValue != null && envValue.Length > 0)
{
writer.Write(envValue);
Index: tests/src/log4net.Tests.csproj
===================================================================
--- tests/src/log4net.Tests.csproj (revision 582971)
+++ tests/src/log4net.Tests.csproj (working copy)
@@ -193,6 +193,11 @@
BuildAction = "Compile"
/>
+
/// Used for internal unit testing the class.
///
- ///
- /// Used for internal unit testing the class.
- ///
[TestFixture]
public class SystemInfoTest
{