question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Logger performance

See original GitHub issue

In my app I’m doing a synchro of a lot of data, and each http request and sql command is logged, which grow a lot (like 4500 lines in few seconds). During the time the log panel show all those entries, I can’t do anything, no refactoring, no open file as it doesn’t do the search. On log panel I can’t filter by level or search a keyword 😕

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 33.0.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jaumardcommented, Mar 12, 2019

I’m having this at work on our private project, let me see if I can create a smaller project to reproduce this

0reactions
jaumardcommented, Mar 12, 2019

Full details: Please file this bug report at https://github.com/flutter/flutter-intellij/issues/new.


What happened

(please describe what you were doing when this exception occurred)

Version information

Android Studio 3.3.2 • Flutter plugin io.flutter 33.3.1 • Dart plugin 182.5215

Flutter 1.2.1 • channel stable • https://github.com/flutter/flutter.git Framework • revision 8661d8aecd (4 weeks ago) • 2019-02-14 19:19:53 -0800 Engine • revision 3757390fa4 Tools • Dart 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

Exception

null

java.lang.AssertionError: Already disposed: Module: 'flutter_log_perf'
	at com.intellij.openapi.components.impl.ComponentManagerImpl.lambda$throwAlreadyDisposed$1(ComponentManagerImpl.java:248)
	at com.intellij.openapi.application.ReadAction.lambda$run$1(ReadAction.java:53)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:959)
	at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:57)
	at com.intellij.openapi.application.ReadAction.run(ReadAction.java:53)
	at com.intellij.openapi.components.impl.ComponentManagerImpl.throwAlreadyDisposed(ComponentManagerImpl.java:246)
	at com.intellij.openapi.components.impl.ComponentManagerImpl.getPicoContainer(ComponentManagerImpl.java:239)
	at com.intellij.openapi.components.impl.ComponentManagerImpl.getComponent(ComponentManagerImpl.java:149)
	at com.intellij.openapi.roots.ModuleRootManager.getInstance(ModuleRootManager.java:35)
	at io.flutter.console.FlutterConsoleFilter.fileAtPath(FlutterConsoleFilter.java:83)
	at io.flutter.console.FlutterConsoleFilter.applyFilter(FlutterConsoleFilter.java:155)
	at io.flutter.logging.text.LineParser.parse(LineParser.java:94)
	at io.flutter.logging.FlutterLogEntryParser$LineHandler.parseLineStyle(FlutterLogEntryParser.java:299)
	at io.flutter.logging.FlutterLogEntryParser$LineHandler.parseLineInfo(FlutterLogEntryParser.java:317)
	at io.flutter.logging.FlutterLogEntryParser$LineHandler.parseEntry(FlutterLogEntryParser.java:322)
	at io.flutter.logging.FlutterLogEntryParser.parseLoggingEvent(FlutterLogEntryParser.java:134)
	at io.flutter.logging.FlutterLogEntryParser.parse(FlutterLogEntryParser.java:238)
	at io.flutter.logging.FlutterLog.onVmServiceReceived(FlutterLog.java:197)
	at io.flutter.logging.FlutterLog.access$200(FlutterLog.java:35)
	at io.flutter.logging.FlutterLog$2.received(FlutterLog.java:182)
	at org.dartlang.vm.service.VmServiceBase.forwardEvent(VmServiceBase.java:365)
	at org.dartlang.vm.service.VmServiceBase.processNotification(VmServiceBase.java:570)
	at org.dartlang.vm.service.VmServiceBase.processMessage(VmServiceBase.java:429)
	at org.dartlang.vm.service.VmServiceBase$1.onMessage(VmServiceBase.java:96)
	at de.roderick.weberknecht.WebSocketReceiver.run(WebSocketReceiver.java:65)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Log4j – Performance - Apache Logging Services
This page compares the performance of a number of logging frameworks ... Log4j 2's Async Loggers use a lock-free data structure, ...
Read more >
High-performance logging - .NET - Microsoft Learn
For high-performance logging scenarios, use the LoggerMessage pattern. LoggerMessage provides the following performance advantages over Logger ...
Read more >
How to evaluate the performance of a logger? - Stack Overflow
I'm doing a project about improving the performance of logs (specifically, log4j) in a Java framework. Now I have two loggers reading from...
Read more >
Logging Performance Comparison - Sebastian Daschner
In a previous blog post, I explained the pros and cons of using logging. In this post, we'll explore and compare the performance...
Read more >
High Performance Logging — Java - Medium
The most popular logging frameworks are Log4j and Log4j2 in the software industry. Why Log4j2 is better than Log4j ? Mainly Log4j2 supports...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found