GithubHelp home page GithubHelp logo

realliangshiwei / logdashboard Goto Github PK

View Code? Open in Web Editor NEW
318.0 15.0 91.0 2.87 MB

Log Dashboard

Home Page: https://logdashboard.net

License: MIT License

C# 30.22% CSS 40.83% JavaScript 23.84% HTML 5.11%
logdashboard dashboard nlog log4net netcore

logdashboard's Introduction

LogDashboard

NuGet NuGet

logdashboard是在github上开源的aspnetcore项目, 它旨在帮助开发人员排查项目运行中出现错误时快速查看日志排查问题

通常我们会在项目中使用nlog、log4net等日志组件,它们用于记录日志的功能非常强大和完整,常见情况会将日志写到txt数据库中, 但通过记事本和sql查看日志并不简单方便. LogDashboard提供了一个可以简单快速查看日志的面板.

LogDashboard适用于aspnetcore 2.x - aspnetcore3.x 项目, 采用aspnetcore中间件技术开发. 轻量快速

页面预览

首页

实时查看应用程序运行中产生的日志

  • 日志聚合
  • 趋势图表
  • 最近十条日志

列表

复合检索所有日志并查看详情等操作

特性

  • 授权访问
  • 自定义日志模型
  • 日志追踪
  • 堆栈查看

支持的日志组件

  • nlog
  • log4net
  • serilog

支持的数据源

  • txt
  • 数据库

线路图

  • 日志中心

交流群

logdashboardqrcode

logdashboard's People

Contributors

jojojofran avatar realliangshiwei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

logdashboard's Issues

Refactor

Try to use native implementations to reduce dependencies on other packages

log4net 文件配置

首先,感谢楼主分享。有个问题希望可以解惑
刷新页面无法获取最新的日志?在debug模式必须重新运行才可以刷新

环境:.net core 2.2 abp.net 4.3 logDashboard 1.2

Document & online demo

  • 快速入门
  • 自定义LogModel
  • 使用数据库源
  • 授权与自定义验证
  • Online Demo

Remove AddAuthorizeAttribute method

Asp.net core 3.0 moves IAuthorizeData to the Microsoft.AspNetCore.Metadata package, so the AddAuthorizeAttribute method cannot be used.
But as an alternative, you can also use ILogDashboardAuthorizationFilter.
I will provide some pre-built authorization filters to provide common authentication.
#52

和ABPVNEXT集成出错

问题

在abpvnext项目中集成LogDashboard出错

  1. 在abp.io网站下载项目模板
    image
  2. 按照LogDashboard文档引用
  3. 执行,直接提示RazorLight相关的异常
    image

samples

  • 简单示例
  • customLogmodel
  • database source
  • 权限samples

使用LogDashboard遇到的一些BUG

首先,感谢作者的贡献,辛苦了,LogDashboard功能很强大,界面很好看!我刚刚昨天用,版本是1.2.3,因为我现在用的VS2017,暂时也不打算升级的19(兼顾到我们现在的团队),所以无法升级到最新版,不知道以下问题是否在其他版本中已经修复,也非常期待作者能够兼容VS2017,兼容2.0标准库。
兼容问题

linux 发布报错如下

Cannot find compilation library location for package 'Microsoft.AspNet.WebApi.Client'

Runtime Environment:
OS Name: centos
OS Version: 7
OS Platform: Linux
RID: centos.7-x64
Base Path: /usr/share/dotnet/sdk/2.2.105/

Host (useful for support):
Version: 2.2.3
Commit: 6b8ad509b6

.NET Core SDKs installed:
2.2.105 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

ABP使用此框架添加登录验证

https://mp.weixin.qq.com/s/AeLQd4qybXbqIl-BhcElDg
我参考这个在ABP框架增加了日志框架,但是想添加授权访问,参考
https://logboard.lpflipped.xin/doc/shou-quan-xian-zhi-fang-wen-ri-zhi-mian-ban.html

services.AddLogDashboard(opt =>
{
opt.AddAuthorizeAttribute(new AuthorizeAttribute());
opt.AddAuthorizationFilter(new SamplesAuthorizationFilter());
});

但是现在无法访问/logdashboard 了,如果不加这个授权访问是可以的。请指点

core3.0支持

LogDashboard是很棒的日志工具,感谢大神开发此利器,core3.0发布许久了,我们的生产项目将要由core2.2升级到3.0,除了LogDashboard外,core3.0版分支已经通过了测试。大神的LogDashboard有3.0版支持计划吗?

core3.0下使用异常

新建一个core3.0web项目,通过nuget包管理器安装了LogDashboard,配置代码如下:
services.AddLogDashboard(config =>
{
config.AddAuthorizeAttribute(new AuthorizeAttribute());
}); 报错代码:config.AddAuthorizeAttribute(new AuthorizeAttribute()); 报错信息:>Startup.cs(32,17,32,45): error CS7069: 对类型“IAuthorizeData”的引用声称该类型是在“Microsoft.AspNetCore.Authorization”中定义的,但未能找到。 core3.0下,Hangfire未出现异常。

Add Cache to File Source

Each request will read the log files for File Source, When the log file is too large, it will make the wait time longer.
I will provide a simple cache to avoid it, but the new problem is that the memory occupied by the application will increase..... Until overflow.
So The file source is only for development, debugging environment

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.