How to use the addCategory function from bindings

Find comprehensive JavaScript bindings.addCategory code examples handpicked from public code repositorys.

1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
try {
    let cid = s_categoryNames.get(name);
    if (cid === undefined) {
        cid = s_categoryNames.size;
        s_categoryNames.set(name, cid);
        nlogger.addCategory(cid, name);
    }

    if (this === s_rootLogger) {
        s_enabledCategories[cid] = (enabled === undefined || enabled === true);
fork icon0
star icon61
watch icon0

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)