Logger returns the default app logger. If the application is not bootstrapped yet, fallbacks to slog.Default().
()
| 358 | // |
| 359 | // If the application is not bootstrapped yet, fallbacks to slog.Default(). |
| 360 | func (app *BaseApp) Logger() *slog.Logger { |
| 361 | if app.logger == nil { |
| 362 | return slog.Default() |
| 363 | } |
| 364 | |
| 365 | return app.logger |
| 366 | } |
| 367 | |
| 368 | // TxInfo returns the transaction associated with the current app instance (if any). |
| 369 | // |
no outgoing calls