How to use the @boost/internal.createInternalDebugger function in @boost/internal

To help you get started, we’ve selected a few @boost/internal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github milesj / boost / packages / log / src / constants.ts View on Github external
import path from 'path';
import { createInternalDebugger } from '@boost/internal';
import { createTranslator } from '@boost/translate';
import { LogLevel } from './types';

export const debug = createInternalDebugger('log');

export const msg = createTranslator('log', path.join(__dirname, '../res'));

// In order of priority!
export const LOG_LEVELS: LogLevel[] = ['log', 'trace', 'debug', 'info', 'warn', 'error'];
github milesj / boost / packages / args / src / constants.ts View on Github external
import { createInternalDebugger } from '@boost/internal';

export const debug = createInternalDebugger('args');

// Default values for option types.
export const DEFAULT_BOOLEAN_VALUE = false;
export const DEFAULT_NUMBER_VALUE = 0;
export const DEFAULT_STRING_VALUE = '';

// Supports letters, numbers, dashes, and camel case.
// Minimum 2 characters. Must start and end with a letter.
export const COMMAND_FORMAT = /^[a-z][-a-z0-9:]*[a-z]$/iu;

// Double dash followed by a long name.
// Supports letters, numbers, dashes, and camel case.
// Minimum 2 characters. Must start with a letter.
export const LONG_OPTION_FORMAT = /^--[a-z][-a-z0-9]+$/iu;

// Single dash followed by a short name.
github milesj / boost / packages / translate / src / constants.ts View on Github external
import { createInternalDebugger } from '@boost/internal';

export const debug = createInternalDebugger('translate');
github milesj / boost / packages / debug / src / constants.ts View on Github external
import { createInternalDebugger } from '@boost/internal';

export const debug = createInternalDebugger('debug');