Skip to content
This repository was archived by the owner on Dec 5, 2022. It is now read-only.
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

friboo.log limitations. #118

@PetrGlad

Description

@PetrGlad

They should be documented or resolved.

  1. Log value that has no JSON serializer (I'd prefer Clojure serialization, but that's a matter of preference)
(org.zalando.stups.friboo.log/info "Message %" (reify Runnable (run [this])))
;=> JsonGenerationException Cannot JSON encode object of class: class user$eval37467$reify__37468: user$eval37467$reify__37468@79fe11e0  cheshire.generate/generate (generate.clj:154)
  1. friboo.log assumes that only errors are exceptions. I have some checks that might detect problems. I cannot log those problems at error level, barring following hack that is :)
(org.zalando.stups.friboo.log/error (RuntimeException. "Error") "This is an error but not an exception.")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions