LoggerSharp 1.0.0
Suggested Alternatives
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package LoggerSharp --version 1.0.0
NuGet\Install-Package LoggerSharp -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LoggerSharp" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LoggerSharp --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: LoggerSharp, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LoggerSharp as a Cake Addin #addin nuget:?package=LoggerSharp&version=1.0.0 // Install LoggerSharp as a Cake Tool #tool nuget:?package=LoggerSharp&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Example class using LoggerSharp:
using System; using System.Text; using System.Linq; using LoggerSharp;
namespace ExampleApplication { public class Program { public Logger logger = null;
static void Main(string[] args)
{
//Creates a new logger instance that that has the application name, a directory where the log files are stored, and the value stating weather the logger allows debug output.
if (logger == null) logger = new Logger("ExampleApplication", Directory.GetCurrentDirectory(), true);
logger.Log(StatusIDS.INFO, "HelloWorld!"); //Prints "HelloWorld" to the console with an INFO status.
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.5
- LoggerSharp (>= 1.0.0)
-
.NETStandard 1.1
- LoggerSharp (>= 1.0.0)
-
.NETStandard 1.3
- LoggerSharp (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.