structure_logs_sink_seq

Creator: coderz1093

Last updated:

0 purchases

structure_logs_sink_seq Image
structure_logs_sink_seq Images

Languages

Categories

Add to Cart

Description:

structure logs sink seq

structure_logs_sink_seq #
structure_logs_sink_seq is a Flutter package that provides a Sink implementation for sending structured logs to Seq Log. This allows you to seamlessly integrate logging into your Flutter applications and send logs to Seq for centralized monitoring.
Installation #
Add the following to your pubspec.yaml file:
dependencies:
structure_logs_sink_seq: ^current_version
copied to clipboard
Usage #

Import the package into your Dart file:

import 'package:structure_logs_sink_seq/structure_logs_sink_seq.dart';
copied to clipboard

Create an instance of the logger:

final logger = StructureLogger();
copied to clipboard

Add the Seq Sink, providing the Seq server URL and optional API key:

LogSink sink = SinkSeq(
'https://your-seq-server-url',
apiKey: 'your-api-key', // Optional, if your Seq server requires an API key
);
logger.addSink(sink);
copied to clipboard

Register logs using the log method:

await logger.log(
"Welcome {name}, your level is {level}",
level: LogLevel.debug,
data: {"name": "John Doe", "level": 12},
);
copied to clipboard
Adjust the Seq server URL and API key according to your Seq configuration.
Contributing #
Contributions are welcome! Feel free to open issues or submit pull requests.
License #
This package is distributed under the LICENSE.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.