1.9.0 • Published 2 years ago
disk-file-writer v1.9.0
disk-file-writer
purpose
- Create a local logging system
- write log into disk files
- set max size for each log file
- log rotate
- keep the log file in a safe disk place where only chrome can access, and provide ways to move it to real folder
- Recording a web meeting locally
- write recorded stream into disk file
- add multiple audio stream, mix it and write to file
Usage
- install
npm install disk-file-writer
- init
import FileLogger from 'disk-file-writer';
FileLogger.createUI();
then we have the UI:
![recording](./images/recording.gif)
- choose where to store files
click the
choose where to store file
button will open the system folder, this is where you choose your root folder to store all the log files and video recording files. - local recoding
when you have choose the folder to store file, the
choose where to store file
button will be removed, then you can click thestart recording
button, thre browser will ask to select a window/screen/browser tab to record. the default sub-folder to store recording file iszoomvideos
, so you can find the recording here: - debugging log
sometimes we want to open log file and see it updating in real time. we can doing it by simply click the
debugging
button: why don't we open thereal-time log.txt
? because the file is being open and close every 1s, so we can't see the updated the file content if we keep the file open. so we have to utilize some tools to see it:- in mac, we use
tail -F path_to_file
- in windows, we use
Get-Content path_to_file -Wait -Tail 10
- in mac, we use
- request permission we store the root directory handle in indexedDB, so you don't have to re-select the directory handle after page refreshment but that doesn't mean we can use the file handle from indexedDB directly, we need the browser to grant permission of read-write after page refreshment.
1.8.2
2 years ago
1.9.0
2 years ago
1.8.1
2 years ago
1.8.5
2 years ago
1.8.4
2 years ago
1.8.3
2 years ago
1.8.0
2 years ago
1.6.4
2 years ago
1.6.3
2 years ago
1.6.2
2 years ago
1.7.1
2 years ago
1.7.0
2 years ago
1.6.1
2 years ago
1.6.0
2 years ago
1.5.1
2 years ago
1.5.0
2 years ago
1.4.6
2 years ago
1.4.4
2 years ago
1.4.3
2 years ago
1.4.2
2 years ago
1.4.1
2 years ago
1.4.0
2 years ago
1.3.1
2 years ago
1.3.0
2 years ago
1.2.0
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago