Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bradyscode committed Apr 16, 2024
1 parent bdd0036 commit d51ef07
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
### Preview
LogsByBrady is a all-in-one logging framework that includes logging functionality for flat files in different formats. Future versions of LogsByBrady will include logging for other logging locations such as SQL Server.

# Flat Files

## Dependency Injection (DI)

```cs
builder.Services.AddBradysLogger()
```
Expand All @@ -27,4 +30,17 @@ Using JsonFormat will set the log format to `txt` format
```cs
.UsingAllFormats();
```
Uses all format options for log files.
Uses all format options for log files.


# SQL Server Logging

## Dependency Injection (DI)

```cs
builder.Services.AddBradysLogger(option =>
{
option.ConnectionString = "";
});
```
This will inject logger into the program using and automatically create a logs table in the database.

0 comments on commit d51ef07

Please sign in to comment.