mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
feat(server/debug): Added initial implementation of new Logger (#84)
- Logs out to a file w/ relevant meta data - Provides better readability for end user This should help provide better troubleshooting for both development and end users. This also fixes any previous catches that were attempting to print stack traces, causing the [object Object] message to appear. Co-authored-by: Christopher Gjelten <[email protected]>
This commit is contained in:
1 parent
a5491302b6
commit
211576e237
18 files changed
+363
-114
No files matched your search
@@ -10,9 +10,16 @@ import './sv_notes';
|
||||
import './sv_photo';
|
||||
import './sv_messages';
|
||||
import './sv_call';
|
||||
import { mainLogger } from './sv_logger';
|
||||
|
||||
export let ESX: Server = null;
|
||||
|
||||
export const getSource = () => (global as any).source;
|
||||
|
||||
emit('esx:getSharedObject', (obj: Server) => (ESX = obj));
|
||||
emit('esx:getSharedObject', (obj: Server) => (ESX = obj));
|
||||
|
||||
on('onServerResourceStart', (resource: string) => {
|
||||
if (resource === GetCurrentResourceName()) {
|
||||
mainLogger.info('Sucessfully started');
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user