Details

Methods


<inner> parseGlob( data ) → {Promise.<Array.<string>>}

Description

Parsing the glob and returns selected files

Parameters
Name Type Description
data string

glob string for log files

Returns

Array of selected paths

Details

<inner> mergeFiles( inputPathList, outputPath ) → {Promise}

Description

Merge multiple files to one file

Parameters
Name Type Description
inputPathList Array.<string>

list of files

outputPath string

file path where the merged file will be saved

Returns

Promise for merging

Details

<inner> createTmpFolder() → {Promise.<string>}

Description

Creates a temporary folder

Returns

folder path

Details

<inner> openShell( [ openNew ], filePath [, param ] ) → {Promise}

Description

Open json-log-viewer

Parameters
Name Type Attributes Description
openNew boolean <optional>

if true open json-log-viewer in a new console

filePath string

path to log file

param string <optional>

json-log-viewer parameter

Returns

Promise for the shell

Details

<inner> copyFile( src, dist ) → {Promise}

Description

Copy a file to a new location

Parameters
Name Type Description
src string

path to file

dist string

path where to save the file

Returns

Promise for coping a file

Details

<inner> deleteFile( src ) → {Promise}

Description

Delete a file

Parameters
Name Type Description
src string

path to file

Returns

Promise for deleting a file

Details

<inner> existFile( src ) → {Promise.<boolean>}

Description

Check if file exist

Parameters
Name Type Description
src string

path to file

Returns

Promise returns true if file exist

Details