This repository has been archived by the owner on Apr 13, 2024. It is now read-only.
Releases: TorchedArchive/Loggaby
Releases Β· TorchedArchive/Loggaby
Loggaby v4.0.3
- Actually publish the typings file
Loggaby v4.0.2
- Add typings (#8)
Loggaby v4.0.1
- Adds default exports
Loggaby v4.0.0
- JSDoc for Loggaby class and Transports
- Make Loggaby partly a Singleton (the first declared instance can be retrieved with
Loggaby.getInstance()
) - (Breaking Change) BaseTransport requires an object to be passed as options instead of a single
useColor
arg:
class CustomTransport extends Loggaby.Transport {
constructor() {
// This:
// super(false)
// Now has to be:
super({color: false}); // Disable color
}
}
// So this also changes..
const TerminalTransport = new Loggaby.TerminalTransport({color: false});
- (Breaking Change) Debug log hiding is handed transport-side now. This allows debug-only transports, but for old transport this change is problematic if you didn't want debug logs.
- An extra
opts
argument is now passed to a transport'stransmit
function. It tells if debug on the logger is on/off/auto and info about the level. - Customizable log format
- Fix error if color is disabled
debug: 'auto'
will automatically handle (dis/en)abling debug logs
Loggaby v3.0.1
3.0.1 - TerminalTransport: use spread operator instead of apply()
Loggaby v3.0.0
- (Breaking Change) Transports will now receive an
array
of arguments instead of a singlestring
, which can either just be.join()
'd or formatted (TerminalTransport
does this)
So users can now use formatting like the standard console.log
:
const Loggaby = require('loggaby');
const logger = new Loggaby();
logger.log('Hello %s!', 'World');
Loggaby v2.2.0
- Hex colors for levels
- Strip spaces from level name for function call
- Move examples to separate folder
Loggaby v2.1.0
- Added Custom Levels
Loggaby v2.0.0
- Rewrite and refactor code
- Add transports