* Format the log message with prefix and context
(_level: LogLevel, message: string, context?: string)
| 59 | * Format the log message with prefix and context |
| 60 | */ |
| 61 | function formatMessage(_level: LogLevel, message: string, context?: string): string { |
| 62 | const contextStr = context ? ` [${context}]` : ''; |
| 63 | return `${config.prefix}${contextStr} ${message}`; |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * Web logger instance |