Console

class Console(val maxEntries: Int = ConsoleLogger.DEFAULT_MAX_ENTRIES, val captureNativeConsole: Boolean = true, defaultExcludedPatterns: List<String> = DEFAULT_EXCLUDED_PATTERNS) : Module, RequiresDataStore

Console Logger module for the DevView developer tools suite.

Captures the platform's native console output — logcat on Android, a stdout/stderr redirect on iOS — and displays it in a filterable, auto-following list, similar to viewing Logcat in Android Studio.

Features

  • Native console capture that works on an untethered device (see the module docs for the exact capture matrix per platform)

  • Bounded, drop-oldest history (default 1000 entries) so a logcat firehose can't OOM the host app

  • Per-com.worldline.devview.consolelogger.model.LogLevel filter chips and a text filter

  • Noise exclusions applied before buffering, with device-persisted rules and enabled states

  • Optional DevViewLogWriter for routing Kermit-based logging into the same view

Integration

val modules = rememberModules {
module(Console())
}

Parameters

defaultExcludedPatterns

Host defaults matched against tags or messages. Append to DEFAULT_EXCLUDED_PATTERNS, replace the list, or pass an empty list. Blank patterns are ignored and duplicates are merged without regard to case. Device edits are merged with current defaults after app updates; Reset to defaults clears those edits.

See also

Constructors

Link copied to clipboard
constructor(maxEntries: Int = ConsoleLogger.DEFAULT_MAX_ENTRIES, captureNativeConsole: Boolean = true, defaultExcludedPatterns: List<String> = DEFAULT_EXCLUDED_PATTERNS)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether to automatically tail the platform's native console output. Set to false to only receive entries logged manually via ConsoleLogger.log or DevViewLogWriter.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Shared persistence initialized by rememberModules before the module starts.

Link copied to clipboard
open override val dataStoreName: String

Preferences file containing device-specific noise filter edits, not console logs.

Link copied to clipboard

Normalized defaults for incoming noise admission; device edits apply to future entries.

Link copied to clipboard
open override val destinations: PersistentMap<KClass<out NavKey>, DestinationMetadata>
Link copied to clipboard
open override val entryDestination: NavKey
Link copied to clipboard
open override val icon: ImageVector
Link copied to clipboard

Maximum number of console log entries retained in memory. Oldest entries are evicted first.

Link copied to clipboard
open override val moduleName: String

Name displayed on the home screen and default destination toolbar.

Link copied to clipboard
open override val registerSerializers: PolymorphicModuleBuilder<NavKey>.() -> Unit
Link copied to clipboard
open override val section: Section
Link copied to clipboard
open override val subtitle: String

Summary displayed on the home screen.

Functions

Link copied to clipboard
Link copied to clipboard
open override fun initModule()
Link copied to clipboard
open override fun EntryProviderScope<NavKey>.registerContent(onNavigateBack: () -> Unit, onNavigate: (NavKey) -> Unit, bottomPadding: Dp)