Skip to content
Permalink
Branch: master
Commits on Feb 10, 2020
  1. Changes after the review

    dfurtado committed Feb 10, 2020
    - changed the mutex is not initialized when creating a instance of
    ScopedLogger.
    - renamed "mux" to "mutex"
Commits on Feb 7, 2020
  1. Fixed concurrency issue

    dfurtado committed Feb 7, 2020
Commits on Feb 6, 2020
  1. Set stdout to false while running tests

    dfurtado committed Feb 6, 2020
    To avoid output logs to stdout when running the tests.
Commits on Feb 5, 2020
  1. code formatting

    dfurtado committed Feb 5, 2020
  2. fixed unit tests

    dfurtado committed Feb 5, 2020
    Added test case for compact json format.
  3. Fixed property name

    dfurtado committed Feb 5, 2020
  4. Support for compact prop in JSONFormatter

    dfurtado committed Feb 5, 2020
    Adds support for compact properties in the JSONFormatter, this will
    replace the default properties "level", "timestamp" and "message" by
    property named using its first letter prefixed by @ symbol. For example:
    timestamp will be displayed as @t when Compact is set to true.
Commits on Feb 4, 2020
  1. Clean up

    dfurtado committed Feb 4, 2020
    Removed this code since it has been moved over its own function.
  2. Write fields when using TextFormatter

    dfurtado committed Feb 4, 2020
    To improve readability of the log while in development, it would be good to
    have the logs in text format.
    
    Changes:
    - Skip setting the JSONFormatter by default when calling SetGlobalFields and
    WithScope methods, and use the formatter that is set in the global logger
    instance instead.
    
    - Introduced a private function called writeFields which is called when
    using the Textformatter and it will print in plain text format the keys
    and values of the Fields map.
You can’t perform that action at this time.