-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
L-733 Rebrand Logtail into BetterStack.Logs.NLog (#1)
- Loading branch information
Showing
15 changed files
with
89 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
bin/* | ||
obj/* | ||
bin/ | ||
obj/ | ||
global.json | ||
|
||
example-project/bin/* | ||
example-project/obj/* | ||
example-project/bin/ | ||
example-project/obj/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Logtail/DrainIsClosedException.cs → BetterStack.Logs/DrainIsClosedException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
# [Better Stack](https://betterstack.com/logs) .NET client | ||
# [Better Stack](https://betterstack.com/logs) .NET NLog client | ||
|
||
📣 Logtail is now part of Better Stack. [Learn more ⇗](https://betterstack.com/press/introducing-better-stack/) | ||
|
||
[![Better Stack dashboard](https://github.com/logtail/logtail-python/assets/10132717/e2a1196b-7924-4abc-9b85-055e17b5d499)](https://betterstack.com/logs) | ||
[![Better Stack dashboard](https://raw.githubusercontent.com/BetterStackHQ/logs-client-nlog/main/dashboard.png)](https://betterstack.com/logs) | ||
|
||
[![ISC License](https://img.shields.io/badge/license-ISC-ff69b4.svg)](LICENSE.md) | ||
[![Nuget version](https://badge.fury.io/nu/Logtail.svg)](https://www.nuget.org/packages/Logtail) | ||
[![Nuget version](https://badge.fury.io/nu/BetterStack.Logs.NLog.svg)](https://www.nuget.org/packages/BetterStack.Logs.NLog) | ||
|
||
Experience SQL-compatible structured log management based on ClickHouse. [Learn more ⇗](https://betterstack.com/logs) | ||
|
||
## Documentation | ||
|
||
[Getting started ⇗](https://betterstack.com/docs/logs/net-c/) | ||
[Getting started ⇗](https://betterstack.com/docs/logs/net-c/#send-logs-to-better-stack-using-nlog) | ||
|
||
## Need help? | ||
Please let us know at [[email protected]](mailto:[email protected]). We're happy to help! | ||
|
||
--- | ||
|
||
[ISC license](https://github.com/logtail/logtail-dotnet/blob/master/LICENSE.md), [example project](https://github.com/logtail/logtail-dotnet/tree/master/example-project) | ||
[ISC license](LICENSE.md), [example project](example-project/) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
//This project uses new C# templates to generate top-level statements | ||
// This project uses new C# templates to generate top-level statements | ||
// See https://aka.ms/new-console-template for more information | ||
|
||
/** | ||
* This project showcases logging to Logtail | ||
* This project showcases logging to Better Stack | ||
*/ | ||
|
||
using NLog; | ||
|
||
// Configure NLog to color properties based on their type | ||
NLog.Config.ConfigurationItemFactory.Default.ValueFormatter = new Logtail.NLog.ColorValueFormatter(); | ||
NLog.Config.ConfigurationItemFactory.Default.ValueFormatter = new BetterStack.Logs.NLog.ColorValueFormatter(); | ||
|
||
// Create logger for current class | ||
var logger = LogManager.GetCurrentClassLogger(); | ||
|
||
//Following code showcases 6 NLog's default log levels | ||
//Additionaly, it also show how to structure logs to add additional data | ||
// Following code showcases 6 NLog's default log levels | ||
// Additionaly, it also show how to structure logs to add additional data | ||
|
||
//Ttrace the code using the Trace() method | ||
// Trace the code using the Trace() method | ||
logger.Trace("Tracing the code!"); | ||
|
||
//Send debug messages using the Debug() method | ||
logger.Debug("Debugging is hard, but can be easier with Logtail!"); | ||
// Send debug messages using the Debug() method | ||
logger.Debug("Debugging is hard, but can be easier with Better Stack!"); | ||
|
||
//Send informative messages about application progress using the Info() method | ||
//All of the properties that you pass to the log will be stored in a structured | ||
//form in the context section of the logged event | ||
// Send informative messages about application progress using the Info() method | ||
// All of the properties that you pass to the log will be stored in a structured | ||
// form in the context section of the logged event | ||
logger.Info("User {user} - {userID} just ordered item {item}", "Josh", 95845, 75423); | ||
|
||
//Report non-critical issues using the Warn() method | ||
// Report non-critical issues using the Warn() method | ||
logger.Warn("Something is happening!"); | ||
|
||
//Send message about serious problems using the Error() method | ||
// Send message about serious problems using the Error() method | ||
logger.Error("Error occurred! And it's not good."); | ||
|
||
//Report fatal errors that coused application to crash using the Fatal() method | ||
// Report fatal errors that caused application to crash using the Fatal() method | ||
logger.Fatal("Application crashed! Needs to be fixed ASAP!"); | ||
|
||
Console.WriteLine("All done! Now, you can check Logtail to see your logs"); | ||
Console.WriteLine("All done! Now, you can check Better Stack to see your logs"); |
Oops, something went wrong.