multiple sqlite writers to same db file yields "database is locked" error

Description

I want to have multiple log streams logged to the same sqlite database, but when trying to log to sqlite using the following configuration:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 local filter: Log::Filter = [ $name="sqlite_conn", $path="analysis", $config=table(["tablename"] = "conn"), $writer=Log::WRITER_SQLITE ]; Log::add_filter(Conn::LOG, filter); local http_filter: Log::Filter = [ $name="sqlite_http", $path="analysis", $config=table(["tablename"] = "http"), $writer=Log::WRITER_SQLITE ]; Log::add_filter(HTTP::LOG, http_filter);

I get the following error:

1 error: analysis/Log::WRITER_SQLITE: Error executing table creation statement: database is locked

Environment

None

Status

Assignee

Robin Sommer

Reporter

Tony Cebzanov

Labels

External issue ID

None

Components

Fix versions

Affects versions

git/master

Priority

Normal
Configure