audiobookshelf/server
Lars Kiesow 10fd51498c
Add Source to Logging
The Audiobookshelf logs sometimes contain information about the source
of the log statement, but sometimes they don't This really depends on
developers adding these information to the log messages.

But even then, the information is usually just a hint about the module
logging this, like `[Db]` or [Watcher]`, and finding the exact line can
be hard.

This patch automatically adds the source of the log statement to the
logs. This means if someone calls `Logger.info(…)` in line `22` of
`foo.js`, the log statement will contain this file and line:

```
[2023-01-05 19:04:12[ (LogManager.js:85:18) DEBUG: Daily Log file found 2023-01-05.txt
[2023-01-05 19:04:12] (LogManager.js:59:12)  INFO: [LogManager] Init current daily log filename: 2023-01-05.txt
```

This should make it much easier to identify the code where the log
statement originated from.

Long-term, this also means that we can probably remove the manually set
identifiers contained in the log messages, like the `[LogManager]` in
the example above.
2023-01-05 19:13:31 +01:00
..
controllers Add:Podcast option to quick match all unmatched episodes 2023-01-04 18:13:46 -06:00
finders
libs Start of new epub reader 2023-01-01 18:09:00 -06:00
managers Update scanner, music meta tags and fix issue with force update 2023-01-02 16:35:39 -06:00
objects Add:Global library search also searches on podcast episode titles #1363 2023-01-04 17:43:15 -06:00
providers Use HTTPS for Google Books Images 2022-12-18 00:18:11 +01:00
routers Add:Podcast option to quick match all unmatched episodes 2023-01-04 18:13:46 -06:00
scanner Add:Podcast option to quick match all unmatched episodes 2023-01-04 18:13:46 -06:00
utils Fix:Series sequence parsed from metadata.abs allow non-numerical characters #1128 #1360 2023-01-04 15:55:02 -06:00
Auth.js Update:Remove RSS feeds from login response payload and include feeds from library items request 2022-12-31 10:59:12 -06:00
Db.js Cleanup scanner 2023-01-02 12:05:07 -06:00
Logger.js Add Source to Logging 2023-01-05 19:13:31 +01:00
Server.js Start of new epub reader 2023-01-01 18:09:00 -06:00
SocketAuthority.js Update:Only emit library socket events to users with access to lib 2022-11-30 17:32:59 -06:00
Watcher.js