esx-framework / esx_core

Official Repo For core resources for esx-legacy
https://documentation.esx-framework.org/
GNU General Public License v3.0
362 stars 734 forks source link

[Feature] ESX Log #975

Open Gellipapa opened 1 year ago

Gellipapa commented 1 year ago

There should be a LOG system in es_extended that can be used to log normally formatted.

Log types: ERROR,WARN,INFO

Option for debug log, so if there is a log(true) in config, it logs only it should be a separate method.

Format should be something like [currentResourceName][logType]:message.

We also use colour.

ERROR-red WARN-orange INFO-lightblue

MoskalykA commented 1 year ago

Hi, why not add the date? Something like this

image

Mycroft-Studios commented 1 year ago

Hi, why not add the date?

because cfx add this when they generate logs

Mycroft-Studios commented 1 year ago

also this is basically already a thing...

i literally went through every default resource and did this already like 5 versions ago