Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Versatile Flutter logger for development and QA. Supports console and socket-based logging, enabling remote monitoring of app behavior, API calls, and analytics without debug connections.

License

NotificationsYou must be signed in to change notification settings

codewave-tech/code_scout

Repository files navigation

CodeScout is a versatile logging solution for Flutter applications, designed to facilitate debugging during development and provide valuable insights post-development through a desktop application using sockets. This logger is particularly useful for QA teams, allowing them to monitor logs related to network API calls, analytics, and other crucial information without requiring a debug connection.

CodeScout Demo

Features

  • Configurable logging levels
  • Console logging during development
  • Socket-based logging for remote monitoring
  • Support for various log types: development traces, debug logs, crashes, errors, and analytics

Installation

Add the following dependency to yourpubspec.yaml file:

dependencies:code_scout:^x.x.x# Replace with the latest version

Usage

Initialization

Before using CodeScout, initialize it with the desired configuration:

voidmain() {CodeScout.init(    terimalLoggingConfigutation:CodeScoutLoggingConfiguration(      devTraces:true,      devLogs:true,      networkCall:true,      analyticsLogs:true,      crashLogs:true,      errorLogs:true,      isDebugMode:true,    ),  );// Your app initialization code}

Logging

Use the following methods to log different types of messages:

// Development traceCodeScout.logDevTrace("Development trace message");// Debug logCodeScout.logDebug("Debug message");// Crash logCodeScout.logCrash("Crash message", error: exception, stackTrace: stackTrace);// Error logCodeScout.logError("Error message", error: error);// Analytics logCodeScout.logAnalytics("Analytics event");

Socket Logging

To enable socket-based logging for remote monitoring:

  1. Implement theCodeScoutSocketLogger function:
voidmySocketLogger(boolFunction(CodeScoutLoggingConfiguration configuration) shouldLog,OutputEvent? outputEvent) {// Implement your socket logging logic here}
  1. Bind the socket logger:
CodeScout.bindSocketLogger(mySocketLogger);
  1. To stop socket logging:
CodeScout.unbindSocketLogger();

Configuration

TheCodeScoutLoggingConfiguration class allows you to customize the logging behavior:

  • devTraces: Enable/disable development trace logs
  • devLogs: Enable/disable debug logs
  • networkCall: Enable/disable network call logs
  • analyticsLogs: Enable/disable analytics logs
  • crashLogs: Enable/disable crash logs
  • errorLogs: Enable/disable error logs
  • isDebugMode: Set to true for development, false for production

Benefits for QA

  • Real-time monitoring of application behavior
  • Easy access to logs without debug connections
  • Ability to track network API calls, analytics events, and errors
  • Improved debugging and issue reproduction capabilities

Note

Ensure that sensitive information is not logged in production environments. Always review and sanitize logs before sharing or storing them.

About

Versatile Flutter logger for development and QA. Supports console and socket-based logging, enabling remote monitoring of app behavior, API calls, and analytics without debug connections.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp