Skip to content

Commit 2a9a71b

Browse files
Update readme
1 parent d226812 commit 2a9a71b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Log4Net.FluentNHibernateAppender Storage - An Implementation for MS SQL Server, MySQL, PostgreSQL, Oracle, Firebird, and DB/2
22
[![Latest version](https://img.shields.io/nuget/v/Log4Net.FluentNHibernateAppender.svg)](https://www.nuget.org/packages/Log4Net.FluentNHibernateAppender/)
33

4-
A simple-to-configure FluentNHibernate storage implementation for [Log4Net] (http://logging.apache.org/log4net/). Supports MS SQL Server, MySQL, PostgreSQL, Oracle, Firebird, DB/2, SQLite, MS Access (Jet), and SQL Server Compact Edition.
4+
A simple-to-configure FluentNHibernate storage implementation for [Log4Net](http://logging.apache.org/log4net/). Supports MS SQL Server, MySQL, PostgreSQL, Oracle, Firebird, DB/2, SQLite, MS Access (Jet), and SQL Server Compact Edition.
55

66

77
Run the following command in the NuGet Package Manager console to install Hangfire.FluentNHibernateStorage:
@@ -93,15 +93,15 @@ namespace Log4Net.FluentNHibernateAppender.SampleApplication
9393
}
9494
}
9595
96-
public class AnotherClass
97-
{
98-
//copy of snippet
99-
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
96+
public class AnotherClass
97+
{
98+
//copy of snippet
99+
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
100100
101-
public static void SomeMethod(){
102-
log.Info("Now I'm logging from another class.'")
103-
}
104-
}
101+
public static void SomeMethod(){
102+
log.Info("Now I'm logging from another class.'")
103+
}
104+
}
105105
}
106106
```
107107

@@ -122,7 +122,7 @@ You need to make a few changes to your app.config or web.config file:
122122
2. Add a `log4net` section
123123
3. In the `log4net` section, add the two `logger` entries as shown below. This will keep NHibernate from spewing its internal logging into your database (unless you *want* that!).
124124
4. In the `log4net` section, add a `root` entry that sets your default minimum log level (DEBUG, INFO, WARN, ERROR).
125-
5. You don't need to add an `appender`-type entry because the code above is doing that for you. But you're free to add more - follow the examples shown [here] (https://logging.apache.org/log4net/release/config-examples.html).
125+
5. You don't need to add an `appender`-type entry because the code above is doing that for you. But you're free to add more - follow the examples shown [here](https://logging.apache.org/log4net/release/config-examples.html).
126126

127127
```
128128
<configuration>

0 commit comments

Comments
 (0)