Skip to content

Logger #167

Open
Open

Description

@Claiyc

Issue description

Describe your issue in detail here
Implement a proper logger to replace console.log & console.error

Definition Of Ready (DoR)

This issue can be worked on if

  • a developer is assigned
  • the issue is labeled
  • the issue is assigned to the current sprint
  • the issue is estimated
  • a meaningful title has been set
  • the issue is described in detail

Activity

  1. converted this from a draft issue on May 12, 2023
  2. moved this to Not Ready in Project VIGADon May 12, 2023
  3. Claiyc commented on May 12, 2023

    @Claiyc
    MemberAuthor

    Having something like this would also be quite useful to trace issues like the tesseract workers crashing

  4. tonoizer commented on May 13, 2023

    @tonoizer
    Contributor

    We could build a simple logger ourself: https://adrianhall.github.io/cloud/2019/06/30/building-an-efficient-logger-in-typescript/

    Or we maybe could use a library which will make things also easier: https://tslog.js.org/#/

  5. Claiyc commented on May 13, 2023

    @Claiyc
    MemberAuthor

    I'd go with a dedicaed library

  6. moved this from Not Ready to Ready in Project VIGADon Jun 1, 2023
  7. self-assigned this
    on Jun 1, 2023
  8. tonoizer commented on Jun 1, 2023

    @tonoizer
    Contributor

    When creating a composable for it stick to the current conventions.
    For example it could be named: useLogger/useLogger.ts

    and should be structured like this then

    /**
     * Logger composable
     */
    export default function useLogger() {
       ...
    
        return {
            ...
        };
    }
  9. moved this from Ready to In progress in Project VIGADon Jun 5, 2023
  10. tonoizer commented on Jun 7, 2023

    @tonoizer
    Contributor

    Maybe documenting somewhere where you can find the log file ?

    Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions