getMaxLogs
Get the current maximum number of logs setting.
Syntax​
getMaxLogs(): number
Returns​
The current maximum number of logs allowed.
Examples​
Basic Usage​
const logger = InteractiveLogger();
const maxLogs = logger.getMaxLogs();
console.log(`Max logs: ${maxLogs}`);
Check Current Limit​
const logger = InteractiveLogger();
const maxLogs = logger.getMaxLogs();
if (maxLogs < 10000) {
await logger.setMaxLogs(10000);
}
See Also​
- setMaxLogs - Update maximum log limit
- getStats - Get storage statistics