aboutsummaryrefslogtreecommitdiff
path: root/log.lua
Commit message (Collapse)AuthorAgeFilesLines
* lazily initialize the default loggerFlorian Fischer2024-12-301-0/+29
| | | | | | | | | | | In order for the user to configure the logging behavior the values of lspc.logging and lspc.log_file must be evaluated after vis-lspc was required. To lazily evaluate the logging configuration a new LazyInitLogger metatable is introduced, which initializes the actual logger on first use. Fixes: 1bd1416c89f92f637ca5e22c94b3479f8d32f2d7
* minor cleanups reported by luacheckFlorian Fischer2024-09-141-2/+2
|
* make the message handling functions methods of the lspc objectFlorian Fischer2024-08-271-0/+64
Move the logging code into its own module and export the default logger. Other modules can use the logger exported in the lspc table.