Startup Messages
Customize startup messages in Logixlysia
Control how your application announces its startup with Logixlysia’s flexible startup message system.
Basic Usage
logixlysia({
config: {
showStartupMessage: true,
startupMessageFormat: 'simple' // or 'banner'
}
})
Message Formats
Simple Format
A clean, minimal startup message:
🦊 Elysia is running at http://localhost:3000
Banner Format
A beautiful ASCII art banner (default):
┌─────────────────────────────┐
│ │
│ Elysia v1.4.30 │
│ │
│ 🦊 http://localhost:3000 │
│ logixlysia v6.x.y │
│ │
└─────────────────────────────┘
The versions are the ones installed, and the box widens to fit its longest row.
The URL comes from the server Elysia hands to its start hooks. When no server is handed over, as with @elysiajs/node, the message prints without a URL: 🦊 Elysia is running in the simple format, and the banner without its URL row. When a server is handed over but lacks a port, a hostname or a protocol, no startup message prints at all.
Configuration
| Option | Type | Description | Default |
|---|---|---|---|
showStartupMessage |
boolean |
Whether to show the startup message | true |
startupMessageFormat |
'simple' | 'banner' |
The format of the startup message | 'banner' |
Best Practices
- Use
'banner'format in development for better visibility - Use
'simple'format in production for cleaner logs - Consider disabling startup messages in production if not needed