log4agent 0.1.0 copy "log4agent: ^0.1.0" to clipboard
log4agent: ^0.1.0 copied to clipboard

A local mobile log bridge that lets coding agents inspect Flutter app logs by device and session.

log4agent #

Flutter client for Log4Agent, a local mobile log bridge that helps coding agents inspect app logs by device and session.

Install #

dependencies:
  log4agent: ^0.1.0

Usage #

import 'package:log4agent/log4agent.dart';

void main() {
  Log4Agent.configure(
    config: const Log4AgentConfig(
      app: 'my_flutter_app',
      deviceId: 'pixel_8',
    ),
  );

  Log4Agent.info('app.start', 'Flutter app started');
}

Use an existing package:http client:

Log4Agent.configure(
  config: const Log4AgentConfig(),
  client: appHttpClient,
);

Use Dio:

Log4Agent.configure(
  config: const Log4AgentConfig(),
  dio: appDio,
);

Endpoints #

Default endpoint:

http://10.0.2.2:3100/logs

Use Log4AgentEndpoint.defaultIosSimulator for an iOS simulator, or configure a host for a real device:

Log4Agent.configure(
  config: Log4AgentConfig.host('192.168.1.10'),
);

Server #

Run the local server on your development machine:

npm install -g log4agent-server
log4agent-server start --background --port 3100

Logs are written to .log4agent under the directory where the server starts.

0
likes
140
points
84
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A local mobile log bridge that lets coding agents inspect Flutter app logs by device and session.

Repository (GitHub)
View/report issues

Topics

#logging #mobile #debugging #agents

License

MIT (license)

Dependencies

dio, http

More

Packages that depend on log4agent