All Projects → sschmid → NLog

sschmid / NLog

Licence: MIT license
Flexible logging for C# and Unity

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to NLog

EventLogger
Log event count and event time in iOS
Stars: ✭ 21 (-86.71%)
Mutual labels:  logger
MQTTnet
MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server (broker). The implementation is based on the documentation from http://mqtt.org/.
Stars: ✭ 3,309 (+1994.3%)
Mutual labels:  tcp
logger
☠ 😈 👀 Simple,Secure & Undetected (6.11.2017) keylogger for Windows :)
Stars: ✭ 37 (-76.58%)
Mutual labels:  logger
winston-dev-console
Winston@3 console format aimed to improve development UX
Stars: ✭ 88 (-44.3%)
Mutual labels:  logger
go-eventserver
A socket server which reads events from an event source and forwards them to the user clients when appropriate
Stars: ✭ 18 (-88.61%)
Mutual labels:  tcp
babel-plugin-js-logger
Babel plugin to enable js-logger in your entire project efficiently.
Stars: ✭ 12 (-92.41%)
Mutual labels:  logger
base
OST Base provides advanced Promise Queue Manager and other utilities.
Stars: ✭ 19 (-87.97%)
Mutual labels:  logger
quebec-power-grid-talk
🎭 Quebec's 735kv power lines can survive the apocalypse, but can they run TCP?!
Stars: ✭ 31 (-80.38%)
Mutual labels:  tcp
okhoxi-serac
冰塔协议-传输层协议
Stars: ✭ 33 (-79.11%)
Mutual labels:  tcp
capybara-chromedriver-logger
Enables console.log/error/info output from Javascript feature specs running with Chromedriver
Stars: ✭ 54 (-65.82%)
Mutual labels:  logger
SierraChartZorroPlugin
A Zorro broker API plugin for Sierra Chart, written in Win32 C++.
Stars: ✭ 22 (-86.08%)
Mutual labels:  tcp
hapi-good-winston
A good reporter to send and log events with winston
Stars: ✭ 21 (-86.71%)
Mutual labels:  logger
LogSwift
Simple yet advanced swift logger
Stars: ✭ 19 (-87.97%)
Mutual labels:  logger
telegram-logger-errors
Telegram logger errors package laravel | Laravel пакет telegram логгер ошибок
Stars: ✭ 15 (-90.51%)
Mutual labels:  logger
nxdk-rdt
Remote Dev Tool is a tool to remote control an Xbox using memory access and RPC
Stars: ✭ 23 (-85.44%)
Mutual labels:  tcp
Packet Sender Mobile
iOS and Android version of Packet Sender
Stars: ✭ 58 (-63.29%)
Mutual labels:  tcp
iroko
A platform to test reinforcement learning policies in the datacenter setting.
Stars: ✭ 55 (-65.19%)
Mutual labels:  tcp
sprout
Golang logging library supporting log retrieval.
Stars: ✭ 85 (-46.2%)
Mutual labels:  logger
Modbus-STM32-HAL-FreeRTOS
Modbus TCP and RTU, Master and Slave for STM32 using Cube HAL and FreeRTOS
Stars: ✭ 272 (+72.15%)
Mutual labels:  tcp
telegram-log
Send a Telegram message when your scripts fire an exception or when they finish their execution.
Stars: ✭ 16 (-89.87%)
Mutual labels:  logger

Sherlog-Header

Sherlog – Flexible logging for C# and Unity

Sherlog is a very light logging library with a clear focus on speed, flexibility, and extensibility. It supports local and remote logging out of the box so you can receive log messages from other devices over the air.

CI Coverage Status Nuget License: MIT Twitter

Install

NuGet Unity Packages on OpenUPM
Sherlog Nuget openupm
Sherlog.Appenders Nuget openupm
Sherlog.Formatters Nuget openupm

Automated Unity Package Releases: https://github.com/sschmid/com.sschmid.sherlog

Quick Start

The SherlogSamples project contains samples for different use cases, such as logging to the console, adding colors or timestamps, and sending log messages via TCP to other devices.

See SherlogSamples

dotnet run --project samples/SherlogSamples/SherlogSamples.csproj

Run the SherlogServer project to receive the sample log messages from SherlogSamples via a TCP connection.

See SherlogServer

dotnet run --project samples/SherlogServer/SherlogServer.csproj listen 12345

SherlogSamples

Sherlog terminology

LogLevel

There are 6 log levels matching the Sherlog log methods:

logger.Trace("This is a message using logger.Trace()");
logger.Debug("This is a message using logger.Debug()");
logger.Info("This is a message using logger.Info()");
logger.Warn("This is a message using logger.Warn()");
logger.Error("This is a message using logger.Error()");
logger.Fatal("This is a message using logger.Fatal()");

You can set the log level per logger or globally for all existing and future loggers.

Logger.GlobalLogLevel = LogLevel.Warn;
var logger = Logger.GetLogger("MyLogger");
logger.LogLevel = LogLevel.Debug;

Only log methods that match or exceed the current log level will forward messages to appenders.

Appenders

Sherlog's plugin architecture lets you add multiple different appenders to handle log messages. An appender is a delegate method which contains the logic for processing log messages. It might write a message to a file, print it to the console or send it over the network via TCP. You can easily write your own appenders. There are no limits!

Sherlog comes with a handful of pre-made appenders and helper classes to get you started quickly:

see Sherlog.Appenders

Formatters

Similar to appenders you can add formatters to decorate messages with additional info like logger name, log level, timestamp, or color.

see Sherlog.Formatters

Maintainer(s)

@sschmid on GitHub - @s_schmid on Twitter

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].