mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
feat(config): Allow config to be edited without rebuild
This commit is contained in:
1 parent
1a3d02f1e3
commit
a880ae66ea
9 files changed
+19
-11
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import winston from 'winston';
|
||||
import config from '../utils/config';
|
||||
import { config } from './server';
|
||||
import path from 'path';
|
||||
|
||||
// Needed to manually apply a color to componenent property of log
|
||||
@@ -13,8 +13,7 @@ const formatLogs = (log: winston.Logform.TransformableInfo): string => {
|
||||
return `${log.label} [${log.level}]: ${log.message}`;
|
||||
};
|
||||
|
||||
const findLogPath = () =>
|
||||
`${path.join(GetResourcePath(GetCurrentResourceName()), 'sv_npwd.log')}`;
|
||||
const findLogPath = () => `${path.join(GetResourcePath(GetCurrentResourceName()), 'sv_npwd.log')}`;
|
||||
// Initiate the main logger for NPWD
|
||||
|
||||
export const mainLogger = winston.createLogger({
|
||||
|
||||
Reference in new issue
Block a user