All Projects → alaatm → Sejil

alaatm / Sejil

Licence: apache-2.0
Capture, view and filter your ASP.net core log events right from your app

Projects that are alternatives of or similar to Sejil

Timber Elixir
🌲 Great Elixir logging made easy
Stars: ✭ 226 (+222.86%)
Mutual labels:  logging, structured-logging
Log
Structured Logging Made Easy
Stars: ✭ 350 (+400%)
Mutual labels:  logging, structured-logging
Dotnetcore
.NET 5 Nuget Packages.
Stars: ✭ 146 (+108.57%)
Mutual labels:  aspnetcore, logging
Timber Ruby
🌲 Great Ruby logging made easy.
Stars: ✭ 154 (+120%)
Mutual labels:  logging, structured-logging
Jslogger
Integrate JavaScript Logging with ASP.NET Core Logging APIs
Stars: ✭ 19 (-72.86%)
Mutual labels:  aspnetcore, logging
Zap
Blazing fast, structured, leveled logging in Go.
Stars: ✭ 14,384 (+20448.57%)
Mutual labels:  logging, structured-logging
Pygogo
A Python logging library with superpowers
Stars: ✭ 265 (+278.57%)
Mutual labels:  logging, structured-logging
Structlog
Structured Logging for Python
Stars: ✭ 1,850 (+2542.86%)
Mutual labels:  logging, structured-logging
Nlog
NLog - Advanced and Structured Logging for Various .NET Platforms
Stars: ✭ 5,296 (+7465.71%)
Mutual labels:  logging, structured-logging
Zerolog
Zero Allocation JSON Logger
Stars: ✭ 5,642 (+7960%)
Mutual labels:  logging, structured-logging
Structured Log
A JavaScript implementation of Serilog's hybrid text/structured logging
Stars: ✭ 133 (+90%)
Mutual labels:  logging, structured-logging
Cartus
A structured logging abstraction with multiple backends.
Stars: ✭ 21 (-70%)
Mutual labels:  logging, structured-logging
Documentation
Stars: ✭ 133 (+90%)
Mutual labels:  logging, structured-logging
Jl
jl — JSON Logs, a development tool for working with structured JSON logging.
Stars: ✭ 194 (+177.14%)
Mutual labels:  logging, structured-logging
Django Structlog
Structured Logging for Django
Stars: ✭ 127 (+81.43%)
Mutual labels:  logging, structured-logging
Rz Go
Ripzap - Fast and 0 allocs leveled JSON logger for Go ⚡️. Dependency free.
Stars: ✭ 256 (+265.71%)
Mutual labels:  logging, structured-logging
Izumi
Productivity-oriented collection of lightweight fancy stuff for Scala toolchain
Stars: ✭ 423 (+504.29%)
Mutual labels:  logging, structured-logging
Znetcs.aspnetcore.logging.entityframeworkcore
This is Entity Framework Core logger and logger provider. A small package to allow store logs in any data store using Entity Framework Core.
Stars: ✭ 24 (-65.71%)
Mutual labels:  aspnetcore, logging
Slog
Structured, contextual, extensible, composable logging for Rust
Stars: ✭ 1,068 (+1425.71%)
Mutual labels:  logging, structured-logging
Hslogger
Logging framework for Haskell
Stars: ✭ 60 (-14.29%)
Mutual labels:  logging

NOTE The master branch, including this readme, has switched to .netcore 3.0. For .netcore 1/2 based, please go here: release/1.0.1.

Sejil

Build status NuGet

Sejil is a library that enables you to capture, view and filter your ASP.net core app's log events right from your app. It supports structured logging, querying as well as saving log event queries.

Quick Links

Getting started

  1. Installing Sejil package

    dotnet add package Sejil --version 2.0.0-beta1
    
  2. Adding code Add below code to Program.cs:

    public static IWebHost BuildWebHost(string[] args) =>
        Host.CreateDefaultBuilder(args)
            .ConfigureWebHostDefaults(webBuilder =>
            {
                webBuilder.AddSejil("/sejil", LogLevel.Debug);
                // ...
            });            
    

    Add below code to Startup.cs

    using Sejil;
    
    public class Startup
    {    
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            app.UseSejil();
            // ...
        }
    }
    

    (Optional) To require authentication for viewing logs:

        public void ConfigureServices(IServiceCollection services)
        {
            services.ConfigureSejil(options =>
            {
                options.AuthenticationScheme = /* Your authentication scheme */
            });
        }
    

    (Optional) To change the logs page title (Defaults to Sejil if not set):

        public void ConfigureServices(IServiceCollection services)
        {
            services.ConfigureSejil(options =>
            {
                options.Title = "My title";
            });
        }
    
  3. Navigate to http://your-app-url/sejil to view your app's logs.

Features and Screenshots

  • View your app's logs

  • View properties specific to a certain log entry

  • Query your logs

  • Mix multiple filters with your query to further limit the results

  • Save your queries for later use

  • Load your saved queries

Building

To build the project, you just need to clone the repo then run the build command:

git clone https://github.com/alaatm/Sejil.git
cd ./Sejil
./build.ps1  # If running Windows
./build.sh   # If running Linux/OSX

You can run one of the sample apps afterwards:

cd ./sample/SampleBasic
dotnet run

License

License

Copyright © Alaa Masoud.

This project is provided as-is under the Apache 2.0 license. For more information see the LICENSE file.

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].