mirror of
https://github.com/wekan/wekan.git
synced 2025-12-21 09:50:13 +01:00
Added back WeKan lockout, ldap, oidc, cas.
Thanks to xet7 !
This commit is contained in:
parent
a73a4c1e5b
commit
00768b4392
45 changed files with 3966 additions and 0 deletions
15
packages/wekan-ldap/server/logger.js
Normal file
15
packages/wekan-ldap/server/logger.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
const isLogEnabled = (process.env.LDAP_LOG_ENABLED === 'true');
|
||||
|
||||
|
||||
function log (level, message, data) {
|
||||
if (isLogEnabled) {
|
||||
console.log(`[${level}] ${message} ${ data ? JSON.stringify(data, null, 2) : '' }`);
|
||||
}
|
||||
}
|
||||
|
||||
function log_debug (...args) { log('DEBUG', ...args); }
|
||||
function log_info (...args) { log('INFO', ...args); }
|
||||
function log_warn (...args) { log('WARN', ...args); }
|
||||
function log_error (...args) { log('ERROR', ...args); }
|
||||
|
||||
export { log, log_debug, log_info, log_warn, log_error };
|
||||
Loading…
Add table
Add a link
Reference in a new issue