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

Add Parsing Functionality #6

@jorinvo

Description

@jorinvo

So far ratlog.js only provides logging. The library is so simple that I think it is fine to add parsing to the same package.
This could simply be a function like:

import { parseRatlog } from 'ratlog'

const logs = parseRatlog(stringOfOneOrMoreLogLines)
assert(logs[0] === { message: 'hi', tags: ['tag'], fields: { field: 'value' } })

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions