Skip to content

feature request: accept a boolean param called eg "log" or "execute" #35

@nickleus

Description

@nickleus
var log = false;
console.log(log, "doesn't log to console");
log = true;
console.log(log, "does log to console");
...
var headerLogging = false;
var footerLogging = true;

function headerCode() {
// do stuff
console.log(headerLogging, "someObj",someObj);
// do more stuff
console.log(headerLogging, "anotherObj",anotherObj);
}

function footerCode() {
// do stuff
console.log(footerLogging, "someObj",someObj);
// do more stuff
console.log(footerLogging, "anotherObj",anotherObj);
}

would b extremely helpful, instead of having to comment out "console.log()" lines in my code.
or is there an existing/better way of doing this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No 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