Giter VIP home page Giter VIP logo

dart_logging_appenders's Introduction

dart_logging_appenders's People

Contributors

hpoul avatar hsmade avatar jpnurmi avatar rvasqz86 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dart_logging_appenders's Issues

Loki integration

Any examples of just using Loki directly ?

I can make a k8 or docker that supports Loki and search and add for everyone's benefit

SimpleJobQueue does not clear queue

I have notices that BaseLogSender does not clear internal _sendQueue correctly.
My suggestion this is because this lines (base_remote_appender.dart):

final copyQueue = _queue.map((job) async {
await job.runner(job).drain(null);
return job;
});
for (final job in copyQueue) {
yield job;
}
})()

listen method expects that _currentStream yields SimpleJobDef but in fact it returns Future
and _queue does not changes.

dio dependency

Hi there,

can you please update the dependency of dio to the latest version: 3.0.4
Thank you very much.

`Logger.onLevelChanged` added in logger v1.2.0

logging v1.2.0 introduced a new Logger.onLevelChanged member:

Analyzing dart_logging_appenders...    0.2s

  error โ€ข lib/src/internal/dummy_logger.dart:11:7 โ€ข Missing concrete implementation of 'getter Logger.onLevelChanged'. Try implementing the missing method, or
          make the class abstract. โ€ข non_abstract_class_inherits_abstract_member
ERROR: ../../../../../.pub-cache/hosted/pub.dev/logging_appenders-1.0.2/lib/src/internal/dummy_logger.dart:11:7: Error: The non-abstract class 'DummyLogger' is missing implementations for these members:
ERROR:  - Logger.onLevelChanged
ERROR: Try to either
ERROR:  - provide an implementation,
ERROR:  - inherit an implementation from a superclass or mixin,
ERROR:  - mark the class as abstract, or
ERROR:  - provide a 'noSuchMethod' implementation.
ERROR: class DummyLogger implements Logger {
ERROR:       ^^^^^^^^^^^
ERROR: ../../../../../.pub-cache/hosted/pub.dev/logging-1.2.0/lib/src/logger.dart:162:22: Context: 'Logger.onLevelChanged' is defined here.
ERROR:   Stream<Level?> get onLevelChanged {
ERROR:                      ^^^^^^^^^^^^^^

ConcurrentModificationError occurred

Just witnessed ConcurrentModificationError exception in the library.

It was thrown in dart_logging_appenders/lib/src/remote/base_remote_appender.dart: Line 180

for (final job in _queue) {

So _queue is being concurrently modified while being iterated.

The issue happened with 0.4.3 version (from pubspec.lock) of the logging_appenders.

Expose remote base classes

Thanks for the great library!

I was wondering if you could expose the base classes for the remote appenders.

RotatingFileAppender is broken on Windows

Hi,

first of all, thanks for this library!

When using the RotatingFileAppender in my Windows Desktop app, I get an exception as soon as the file rotation happens. This is because the code tries to rename a file that is still open, which is not allowed on Windows.

There already is a PR #15 that fixes the issue for me, I tried with the forked version from that PR and then the file rotation worked for me.

Would be really nice to get that PR (or something similar) released :-) I'd also be willing to test any possible bugfix.

Support dio 5

Dio has been updated to 5.0, and now version solving fails:

Because logging_appenders 1.0.0+2 depends on dio ^4.0.0 and no versions of logging_appenders match >1.0.0+2 <2.0.0, logging_appenders ^1.0.0+2 requires dio ^4.0.0.

change file name

Hi,
it would be possible to change the name based on the time, like nlog for example.
Thanks.

Option to disable writing "Rotated log." when the RotatingFileAppender rotates

Would it be possible to add an option to the RotatingFileAppender to be able to turn off the automatic "Rotated log." line after rotating files?

I'm uploading the collected log files to a server that expects a certain format per line. I currently have to use a LogRecordFormatter to rewrite the "Rotated log." line into a valid format for it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.