You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-30 23:44:55 +02:00
Tools: Added syncDebugLog to help debugging sync operations
This commit is contained in:
13
packages/lib/services/synchronizer/syncDebugLog.ts
Normal file
13
packages/lib/services/synchronizer/syncDebugLog.ts
Normal file
@ -0,0 +1,13 @@
|
||||
// The sync debug log can be used to view from a single file a sequence of sync
|
||||
// related events. In particular, it logs notes and folders being saved, and the
|
||||
// relevant sync operations.
|
||||
|
||||
import Logger, { TargetType } from '../../Logger';
|
||||
import { homedir } from 'os';
|
||||
|
||||
const syncDebugLog = new Logger();
|
||||
syncDebugLog.addTarget(TargetType.File, {
|
||||
path: `${homedir()}/synclog.txt`,
|
||||
});
|
||||
|
||||
export default syncDebugLog;
|
Reference in New Issue
Block a user