Giter Club home page Giter Club logo

Comments (7)

vuvanly avatar vuvanly commented on June 16, 2024

nice. i wanna try

from hanami.

jodosha avatar jodosha commented on June 16, 2024

@vuvanly Sure, thanks.

from hanami.

AlfonsoUceda avatar AlfonsoUceda commented on June 16, 2024

@jodosha something like Rails.logger.info ?

from hanami.

jodosha avatar jodosha commented on June 16, 2024

@AlfonsoUceda I don't like that singleton. We should explore a different API.

Example:

Lotus::Logger.new # generic logger

# or

Bookshelf::Logger.new # which inherits application's configuration (level)

Other points to consider:

  • Output stream (file, stdout) Always stdout
  • Default level (debug, info, fatal etc..)
  • Per application default level (Configuration)
  • Rotation (maybe use SysLogger gem?) This is up to the server/container.
  • Make it compliant to "The Twelve-Factor App" logging advices

For more details see: http://adam.herokuapp.com/past/2011/4/1/logs_are_streams_not_files/

from hanami.

runlevel5 avatar runlevel5 commented on June 16, 2024

@vuvanly are you still working on this feature? I haven't heard back from you and @huydx has expressed his interest in giving this a go. So please let me know asap.

from hanami.

jodosha avatar jodosha commented on June 16, 2024

As part of this plan, I would love to see a replacement of Rack::CommonLogger to be used in Lotus::Server#middleware.

Please remember that if we want to tag the request with an unique ID, we have Action#request_id for the purpose.

from hanami.

vuvanly avatar vuvanly commented on June 16, 2024

Sorry for late response. Recently i have somethings to do, so in the near
future i think i cannot follow it. Sorry for this inconvenience.

On Sat, Jan 3, 2015 at 4:33 PM, Trung Lê [email protected] wrote:

@vuvanly https://github.com/vuvanly are you still working on this
feature? I haven't heard back from you and @huydx
https://github.com/huydx has expressed his interest in giving this a
go. So please let me know asap.


Reply to this email directly or view it on GitHub
#34 (comment).

Vũ Văn Lý *
*Ruby on Rails Developer

Address: 15/32/48A, Vo Duy Ninh, Binh Thanh
https://www.google.com/maps/place/13+V%C3%B5+Duy+Ninh,+22,+B%C3%ACnh+Th%E1%BA%A1nh/@10.791769,106.7145395,17z/data=!3m1!4b1!4m2!3m1!1s0x317528adb2a0fdeb:0xc799215398cdaed4

Hometown_: *Hoang Mai, Nghe An
https://www.google.com/maps/place/QL+1A,+%C4%90%E1%BB%93ng+M%E1%BB%97i,+Qu%E1%BB%B3nh+Xu%C3%A2n,+Qu%E1%BB%B3nh+L%C6%B0u/@19.2258856,105.6946963,17z/data=!3m1!4b1!4m2!3m1!1s0x31377484a4a31ae3:0x9ec4d64f0f0f52b8
Email: [email protected]
*Phone: (+84) 1657 656 050 *
Skype: *vanly.se05_

from hanami.

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.