Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Releases: TorchedArchive/Loggaby

Loggaby v4.0.3

19 Feb 02:48
Compare
Choose a tag to compare
  • Actually publish the typings file

Loggaby v4.0.2

10 Feb 23:20
238f437
Compare
Choose a tag to compare
  • Add typings (#8)

Loggaby v4.0.1

10 Feb 23:19
238f437
Compare
Choose a tag to compare
  • Adds default exports

Loggaby v4.0.0

08 Nov 21:15
Compare
Choose a tag to compare
  • 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's transmit 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

20 Oct 22:52
Compare
Choose a tag to compare
3.0.1 - TerminalTransport: use spread operator instead of apply()

Loggaby v3.0.0

17 Oct 14:56
Compare
Choose a tag to compare
  • (Breaking Change) Transports will now receive an array of arguments instead of a single string, 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

15 Oct 20:29
Compare
Choose a tag to compare
  • Hex colors for levels
  • Strip spaces from level name for function call
  • Move examples to separate folder

Loggaby v2.1.0

15 Oct 20:26
Compare
Choose a tag to compare
  • Added Custom Levels

Loggaby v2.0.0

15 Oct 20:24
Compare
Choose a tag to compare
  • Rewrite and refactor code
  • Add transports