Log-database.txt contains notes

Hello, I’m new to Joplin after migrating from another note app. I noticed something about this log-database.txt file, it contains some of my notes which are shown on a plain text. I know I can easily delete it, but I’m just wondering if this is how Joplin’s logging works?

Do you have a flags.txt in your profile directory? Because this log file is only generated when you run in dev mode, and that would be done by flags.txt

Nope, there’s no flags.txt file on my profile directory. I forgot to mention that I am using the portable version in Windows.

Can confirm - no flags.txt but log-database.txt is there. Also portable version on Windows.

Same on macOS. There's a log-database.txt in my profile dir (and a log-clipper.txt).

It would be nice to be able to turn off logging completely. I usually do not need log-database.txt or log.txt unless I want to debug something.

Currently I use the following workaround :wink:

cd ~/.config/joplin-desktop
ln -s /dev/null log.txt
ln -s /dev/null log-database.txt
ln -s /dev/null log-clipper.txt

One liner:

cd ~/.config/joplin-desktop; rm log.txt; rm log-database.txt; rm log-clipper.txt; ln -s /dev/null log.txt && ln -s /dev/null log-database.txt && ln -s /dev/null log-clipper.txt

I’ve reported large log.txt files created by mac version of Joplin in another https://discourse.joplinapp.org/t/sync-issue-and-log-txt/9429 thread.

@tessus Are you finding this too?

I’m not sure why you opened another topic. It’s basically a duplicate of this one.

I’ll look into it. Maybe it got accidentally enabled in a recent release.

That will be fixed in the next release: https://github.com/laurent22/joplin/commit/3e88a2475339a8da31d93876c10ad59db43f4682

1 Like

Thank you, laurent.