Skip to content

Create JERRY_LOG macros #68

Closed
Closed
@LaszloLango

Description

@LaszloLango

Currently the only way to print debug information is using 'fprintf' with JERRY_NDEBUG. It would be helpful to do some logger macros to wrap NDEBUG and fprintf at least. The possibility of setting different debug levels can make this more useful.

Example:
JERRY_DPRINT("This is a first level debug message!", variables);
JERRY_DDPRINT("This is a second level debug message!", variables);
JERRY_DDDPRINT("This is a third level debug message!", variables);

Metadata

Metadata

Assignees

No one assigned

    Labels

    criticalRaises security concernsdevelopmentFeature implementationecma coreRelated to core ECMA functionalityfeature requestRequested feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions