Update "Initializing CORE" documentation page
This commit is contained in:
parent
fee0bb3eb1
commit
5f598d94f9
1 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@ extends Node
|
||||||
|
|
||||||
var core: Core
|
var core: Core
|
||||||
## Gets a so called "logger instance". It basically saves you an argument on each log call.
|
## Gets a so called "logger instance". It basically saves you an argument on each log call.
|
||||||
@onready var logger: CoreLoggerInstance = core.logger.get_instance("path/to/script.gd")
|
@onready var logger: CoreLoggerInstance = core.logger.get_instance("path/to/script.gd", self)
|
||||||
|
|
||||||
# Preinitialization phase
|
# Preinitialization phase
|
||||||
func _init() -> void:
|
func _init() -> void:
|
||||||
|
@ -21,9 +21,9 @@ func _init() -> void:
|
||||||
# Allow diagnostic and verbose messages
|
# Allow diagnostic and verbose messages
|
||||||
config.logger_level = CoreTypes.LoggerLevel.DIAG
|
config.logger_level = CoreTypes.LoggerLevel.DIAG
|
||||||
# Initialize CORE with custom configuration
|
# Initialize CORE with custom configuration
|
||||||
core = Core.new(config)
|
core = await Core.new(config)
|
||||||
# Initialize CORE with standard configuration, commented out
|
# Initialize CORE with standard configuration, commented out
|
||||||
#core = Core.new()
|
#core = await Core.new()
|
||||||
|
|
||||||
# Initialization phase
|
# Initialization phase
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
|
|
Loading…
Reference in a new issue