Skip to main content
MessageLog is the simplest log type, extending BeagleLog without any additional properties. Use it for general-purpose logging of informational messages.

Overview

MessageLog inherits all properties and methods from BeagleLog and doesn’t add any additional functionality. It’s the default choice for logging custom messages at various severity levels.

Constructor

string
required
The log message content.
LogLevel
default:"info"
Optional severity level. One of: 'loading' | 'info' | 'warning' | 'error' | 'success'.
string
Optional custom ID. If not provided, a unique 6-character ID is generated automatically.

When to Use

Use MessageLog for:
  • General application events
  • Custom debug messages
  • User action tracking
  • Application state changes
  • Any log that doesn’t fit the specific types (Error, Networking)

Usage Examples

Basic Info Message

Success Message

Warning Message

Custom ID

Type Definition