Coder Social home page Coder Social logo

log-dispatchouli's People

Contributors

dolmen avatar grinnz avatar hartzell avatar ilmari avatar madsen avatar rjbs avatar rwstauner avatar xsawyerx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

log-dispatchouli's Issues

Failed test 'logged timestamp, pid, and hash' in version 2.007

Version 2.007 fails here with the following message:

#   Failed test 'logged timestamp, pid, and hash'
#   at t/file.t line 30.
#                   'Thu Sep 26 07:42:24 2013 [4383] point: {{{"x": 1,"y": 2}}}
# '
#     doesn't match '(?^:^.+? \[4383\] point: \{\{\{("[xy]": [12](, )?){2}\}\}\}$)'
# Looks like you failed 1 test of 4.
t/file.t ...................... 
Dubious, test returned 1 (wstat 256, 0x100)

Docs should be clearer about debug flag

This is a follow-up to RT#77622. The issue there is that $log->log_debug('message') and $log->log({level => 'debug'}, 'message') are not equivalent. The first is suppressed by the debug flag, and the second is not.

You stated that you are satisfied with that behavior, and I'm ok with that. I have to agree that a careful reading of the documentation does support the position that the debug flag is only relevant to log_debug, not log.

But you shouldn't need to read the docs that closely. The documentation for log should clearly state that it logs all messages regardless of level, and does not consult the debug flag.

On a side note, the Proxy docs have a bug: it says "(bug to the 'debug' logging level)" when you meant "but" (or possibly just delete that word altogether).

Strict argument checking?

$logger->proxy({ prefix => "foo" }); is a typo I could see myself making.

This method (any others with args?) should be strict perhaps?

Some tests fail if there are none of the `::XS` modules available for `JSON::MaybeXS`

If neither JSON::XS nor Cpanel::JSON::XS are available for JSON::MaybeXS some test fail:

t/events.t ............. 1/? 
    #   Failed test 'refref becomes JSON flogged'
    #   at t/events.t line 360.
    # Compared $data->[0]
    #    got : 'event=json-demo foo.a=1 bar="{{{\"a\": 1}}}" baz={{[12,34]}}'
    # expect : 'event=json-demo foo.a=1 bar="{{{\"a\": 1}}}" baz="{{[12, 34]}}"'
    # GOT: event=json-demo foo.a=1 bar="{{{\"a\": 1}}}" baz={{[12,34]}}

    #   Failed test 'parsing gets us JSON string out, because it is just strings'
    #   at t/events.t line 370.
    # Compared $data->[7]
    #    got : '{{[12,34]}}'
    # expect : '{{[12, 34]}}'
    # Looks like you failed 2 tests of 3.

#   Failed test 'JSON-ification of refrefs'
#   at t/events.t line 389.
# Looks like you failed 1 test of 8.
t/events.t ............. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/8 subtests

Both the *::XS modules add the expected space.

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.