gulp-displaylog
by ilex.h
default use
onlyPath
Install
$ npm install --save-dev gulp-displaylog
Usage
const gulp = ;const displaylog = ; gulp;gulp;
use logger
const displaylog = ; const logger = displayloglogger; ; // console.loglogger; // console.infologgerdir'hello'; // console.dirlogger; // console.warnlogger; // console.error
API
displaylog([options])
options
name | type | default | description |
---|---|---|---|
title | string | amos-displaylog: |
Give it a custom title so it's possible to distinguish the output of multiple instances logging at once. |
isRelative | boolean | true | By default only relative paths are shown. Turn off isRelative mode to also show cwd , base , path . The stat property will be shown when you run gulp in verbose mode: gulp --verbose . |
onlyPath | boolean | true | only when isRelative is false, then onlyPath will worked. if onlyPath is true, will show full path, or show cwd、base、path |
showFiles | boolean | true | Setting this to false will skip printing the file names and only show the file count. |
changelog
-
2019-1-9 v1.0.3
-gulplog
add custom logger
-
2018-12-17 v1.0.2
-gulp-util
+gulplog
update gulp@4.0.0
License
MIT