Creates a Logger object and setup its callback to the given Core instance.
- Template Parameters
-
TLogger | Concrete Logger type |
TArgs | Constructor argument types (will be deducted automatically) |
- Parameters
-
core | The core instance the Logger object should contribute to. |
args | The constructor arguments for the newly generated Logger object. Will be forwarded as is. |
- Returns
- Logger object
This function creates a new Logger object and returns it to the caller. This Logger will receive a callback to the given Core instance, but Core does not take over ownership of the created Logger object. If users does not need the Logger object any longer, they may simply let them go out of scope.