Skip to content

Loggical API Documentation v1.0.1


Loggical API Documentation v1.0.1

Enumerations

EnumerationDescription
ColorLevel-

Classes

ClassDescription
LoggerLogger class for structured logging with colors and levels
ConsoleTransportTransport that outputs logs to the console This is the default transport that maintains existing behavior
FileTransportSimple transport that writes logs to files (Node.js only) Simplified version without log rotation or write queues
BaseTransportBase transport class with common functionality

Interfaces

InterfaceDescription
LoggerOptionsMain configuration interface for Logger instances
RedactionConfigSimple redaction configuration (kept for backward compatibility)
LogMetadataMetadata passed to transports for each log message
TransportOptionsConfiguration options for transports
TransportBase transport interface that all transports must implement
ConsoleTransportOptionsConsole transport specific options
FileTransportOptionsFile transport specific options (simplified)

Type Aliases

Type AliasDescription
LogLevelType-
ColorLevelType-
RedactionOptionSimple redaction option - boolean only for basic sensitive key detection

Variables

VariableDescription
loggerDefault logger instance with standard configuration
compactLoggerCompact logger optimized for space-efficient logging
readableLoggerEnhanced readable logger for development and debugging
serverLoggerProduction logger optimized for server environments
LogLevelAvailable log levels with their numeric priorities
LogLevelNamesMapping from log level numeric values to their string names

Released under the MIT License.