Check out my latest Open Source Project: AuthPass - Keepass compatible password manager. Code also available on github at authpass/authpass.
Head over to https://codeux.design/ for my portfolio, blog and contact details.
Logging appenders for the logging package for print, file and remote (logz, loki).
License: MIT License
Check out my latest Open Source Project: AuthPass - Keepass compatible password manager. Code also available on github at authpass/authpass.
Head over to https://codeux.design/ for my portfolio, blog and contact details.
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
I have notices that BaseLogSender does not clear internal _sendQueue correctly.
My suggestion this is because this lines (base_remote_appender.dart):
dart_logging_appenders/lib/src/remote/base_remote_appender.dart
Lines 180 to 187 in 4898a9e
Hi there,
can you please update the dependency of dio to the latest version: 3.0.4
Thank you very much.
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: ^^^^^^^^^^^^^^
the fields 'time', 'level' and 'loggerName' are already sent individually to logz.io. Therefore they are not needed in 'message'.
sb.write('${rec.time} ${rec.level.name} ${rec.loggerName} - ${rec.message}');
dynamic labels for logzio would be nice.
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.
Thanks for the great library!
I was wondering if you could expose the base classes for the remote appenders.
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.
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.
Can you provide a detailed example for Rotating File Logger with multiple log files i.e. error, info and warning are stored in different log files (error.log, info.log and warning.log).
keepRotateCount = 3
rotateAtSizeBytes = 100 * 1024 * 1024 //100.M.B.
Hi,
it would be possible to change the name based on the time, like nlog for example.
Thanks.
Dont you think it would be a good idea to at least provide one example for each remote appender?
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.