Git Product home page Git Product logo

Comments (4)

maplebeats avatar maplebeats commented on August 14, 2024

tars的util里提供了全局日志库util/rogger哦

from tarsgo.

Clark-zhang avatar Clark-zhang commented on August 14, 2024

@maplebeats
麻烦看下我的背景描述哈,是想用filter做服务级别的日志。
我示例代码里的global.Log就是util/rogger在服务级别的全局变量。

from tarsgo.

sandyskies avatar sandyskies commented on August 14, 2024

@Clark-zhang 你是想通过filter获取request 或者response 包体里面的SBuffer包含的内容吧?这里是序列化后的的

from tarsgo.

Clark-zhang avatar Clark-zhang commented on August 14, 2024

@Clark-zhang 你是想通过filter获取request 或者response 包体里面的SBuffer包含的内容吧?这里是序列化后的的

@sandyskies
是的,我想把他反序列化出来。打在log日志里,作为调试之用。这样做就不需要业务频繁打日志了。
我看目前tarsgo的debug日志里,好像也没有反序列化,都是原始的tars编码之后的buffer。
所以想问如何做这块。

from tarsgo.

Related Issues (20)

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.