CORE/docs/docs/reference/config.md

2.5 KiB

sidebar_position description
1 The framework configuration

CoreConfiguration

Provides the default configuration for the CORE Framework.

Note

All settings are variables.

Global

bool headless = false

Controls CORE's functionality. Renders GUI-related modules useless when set to false, which is the recommended behaviour on servers. For CORE's full functionality, set this to true.

bool development = false

Puts the framework into development mode.
Unlocks experimental features.

bool custom_modules = false

Allows or disallows custom modules.

bool automatic_shutdown = true

If quit_safely (and by extension Core.cleanup) should be called when pressing the X.

Logger

CoreTypes.LoggerLevel logger_level = CoreTypes.LoggerLevel.INFO

The minimum log level you want to be displayed.

bool logger_colored = true

Determines if the logger's output should be colored.

bool logger_detect_verbose_mode = false

:::warning Updating this during runtime does nothing. ::: Determines if the logger should check if running in verbose mode (see OS.is_stdout_verbose).
Comes with a huge performance penalty on startup, delaying startup by about one to two seconds.
Update verbose_mode accordingly yourself if you've disabled this, or diagnostic log messages might appear messed up. \

String logger_format = "%color%[%time%] [%level% %source%:%line%] %message%"

The template for all log messages Available placeholders are: %time%, %time_ms%, %level%, %color%, %message%, %source%, %source_raw%, %function% and %line%

bool logger_newlines_override = true

Determines if identation should be provided if the logger encounters a newline.

int logger_newlines_sizelimit = 40

The maximum amount of characters excluding the message before newlines are no longer idented. Set to -1 to disable this behaviour.

Log UI

bool logui_enabled = true

Enables or disables Log UI.

Color logui_background_color = Color.BLACK

The Log UI background color.. Set to Color.TRANSPARENT for a transparent background.

int logui_font_size = 14

What font size the graphical log should have.

Easy Request Maker

CoreTypes.BlockadeLevel erm_unsecure_requests = CoreTypes.BlockadeLevel.BLOCK

Determines how unsecure requests should be handled.