How to use the default function from loglevel

Find comprehensive JavaScript loglevel.default code examples handpicked from public code repositorys.

136
137
138
139
140
141
142
143
144
145
if (!this._sentryLogger) return null;
//if not yet completed, set up the Sentry logger, restricting its output to
//  Sentry alone (nothing redundant to console) and with a default of
//  emitting only errors (or worse)
if ('boolean' == typeof this._sentryLogger) {
  this._sentryLogger = loglevel_1.default.getLogger('Beefy Sentry');
  this._sentryLogger.methodFactory = () => () => void 0;
  new loglevel_sentry_1.default(Sentry).install(this._sentryLogger);
  this._sentryLogger.setLevel(loglevel_1.default.levels.ERROR);
}
fork icon27
star icon10
watch icon7

+ 5 other calls in file

53
54
55
56
57
58
59
60
61
62
    structuredUseMethod = (0, various_1.parseUses)(useMethod, totalUses);
    if (structuredUseMethod) {
        const info = await solConnection.getAccountInfo(mintKey);
        const meta = mpl_token_metadata_1.MetadataData.deserialize(info.data);
        if ((meta === null || meta === void 0 ? void 0 : meta.uses) && meta.uses.total > meta.uses.remaining) {
            loglevel_1.default.error('FAILED: This call will fail if you have used the NFT, you cannot change USES after using.');
            return;
        }
    }
}
fork icon0
star icon0
watch icon1

+ 13 other calls in file

617
618
619
620
621
622
623
624
625
626
//@ts-ignore
loglevel_1.default.info('Treasury Acct:', auctionHouseObj.auctionHouseTreasury.toBase58());
loglevel_1.default.info('Fee Payer Withdrawal Acct:', 
//@ts-ignore
auctionHouseObj.feeWithdrawalDestination.toBase58());
loglevel_1.default.info('Treasury Withdrawal Acct:', 
//@ts-ignore
auctionHouseObj.treasuryWithdrawalDestination.toBase58());
loglevel_1.default.info('Fee Payer Bal:', feeAmount);
loglevel_1.default.info('Treasury Bal:', treasuryAmount);
fork icon0
star icon0
watch icon1

+ 44 other calls in file

151
152
153
154
155
156
157
158
159
160
  warn: error messages which do not cause a functional failure
  info: informational messages, showing completion, progress, etc.
  debug: messages to help in diagnosing a problem
*/
if (['debug', 'info', 'warn', 'error'].includes(inputParams.debug)) {
    loglevel_1.default.setLevel(inputParams.debug);
}
else if (inputParams.debug === true) {
    loglevel_1.default.setLevel('debug');
}
fork icon0
star icon0
watch icon1

+ 7 other calls in file