Giter Club home page Giter Club logo

fuyibing / log Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 2.0 1.05 MB

集成 Trace 的 Log 中间件, 遵循 OpenTelemetry 规范. Log 部分支持 term, file, kafka, aliyun sls 可配置, Trace 部分支持 term, jaeger, zipkin, aliyun sls. 其中 term (输出在终端控制台) 模式一般在 开发环境时使用, 此模式下 Log/Trace 为同步 SYNC 模式, 反之为异步 ASYNC.

License: Apache License 2.0

Go 100.00%
jaeger open-telemetry open-tracing zipkin aliyun sls

log's Introduction

链路日志

集成 TraceLog 中间件, 遵循 OpenTelemetry 规范.

import github.com/fuyibing/log/v5

配置

包初始化时,自动从配置文件(config/log.yaml)文件中读取配置参数,若未指定则使用默认值

公共参数

H3

Logger

Term

logger-exporter: "term"

File

logger-exporter: "file"
file-logger:
  path: "/var/logs"
  folder: "2006-01"
  name: "2006-01-02"
  ext: "log"

Kafka

Tracer

Term

File

Kafka

log's People

Contributors

fuyibing avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

captain1 wadekun

log's Issues

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.