Aetherim doesn't provide any support for logging data, errors, warnings, etc.
Ideally, we'd use this primarily to handle logging any exceptions that occur during runtime.
When initialized, check for Aetherim.log in the game's root directory.
If it exists: truncate its contents (deleting/recreating the file may be quicker, idk yet)
If it doesn't exist: create the file
When we catch any exceptions, ex: if Class->get_field() is called but the field doesn't exist, we log the Image, Namespace, Class, and the name of the field that we tried to get to the logfile.
Example logfile entry:
[Sept. 30, 2023 @ 04:20 AM] Attempted access to non-existent field in Image->Namespace->Class
We can do this for anything, but logs for thrown exceptions are a must.
Aetherim doesn't provide any support for logging data, errors, warnings, etc.
Ideally, we'd use this primarily to handle logging any exceptions that occur during runtime.
When initialized, check for
Aetherim.login the game's root directory.If it exists: truncate its contents (deleting/recreating the file may be quicker, idk yet)
If it doesn't exist: create the file
When we catch any exceptions, ex: if Class->get_field() is called but the field doesn't exist, we log the Image, Namespace, Class, and the name of the field that we tried to get to the logfile.
Example logfile entry:
We can do this for anything, but logs for thrown exceptions are a must.