Skip to content

[Feature Request] Add multi-line log alignment support for better readability #51

@a145789

Description

@a145789

Problem Description

Currently, when logging multi-line messages, the secondary and subsequent lines are not aligned with the log level prefix, which affects readability.

Current behavior:

Info      This is the first line
This is the second line
This is the third line
Error     Another error message

Expected behavior:

Info      This is the first line
          This is the second line
          This is the third line
Error     Another error message

Use Case Examples

// Current output:
logger.info(`User profile updated:
- Name: John Doe
- Email: john@example.com
- Phone: +1234567890`);

// Outputs:
// Info      User profile updated:
// - Name: John Doe
// - Email: john@example.com
// - Phone: +1234567890

// Desired output:
// Info      User profile updated:
//           - Name: John Doe
//           - Email: john@example.com
//           - Phone: +1234567890

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions