mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 14:00:21 +00:00
plugins: add Logger interface
Plugins need to be able to log messasages, say for errors.
This commit is contained in:
parent
8a57f90b65
commit
bb4ab4f168
1 changed files with 6 additions and 0 deletions
|
@ -47,6 +47,12 @@ const packageApis = function (packageInfo) {
|
|||
Config: {
|
||||
getConfig: () => Helper.config,
|
||||
},
|
||||
Logger: {
|
||||
error: (...args) => log.error(...args),
|
||||
warn: (...args) => log.warn(...args),
|
||||
info: (...args) => log.info(...args),
|
||||
debug: (...args) => log.debug(...args),
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue