Giter Club home page Giter Club logo

hemend_async_log_recorder's Introduction

Hemend Async Logger

License: MIT pub package git repo pub points code_count code size Ci Auto Publish codecov

The presented software package expands upon the existing functionality of the hemend_logger package, which can be found at https://pub.dev/packages/hemend_logger. This extension enhances the capabilities of the package by introducing asynchronous logging functions that enable the recording of logs using various methods, such as post requests, websockets, files, and more.

At its current state, the package includes built-in support for post request, web socket and file logging functionalities, allowing users to seamlessly utilize these mechanisms for recording logs.

File Recorder

Post Recorder

Installation ๐Ÿ’ป

โ— In order to start using Hemend Async Logger you must have the Dart SDK installed on your machine.

Add hemend_async_log_recorder and hemend_logger to yourpubspec.yaml:

dependencies:
  hemend_logger: <latest-version>
  hemend_async_log_recorder: <latest-version>

Install it:

dart pub get

Usage

Just add desired logger to the hemend_logger instance and start logging

HemendLogger.defaultLogger()
  ..addListener(
    HemendAsyncLogRecorder.post(postUrl: 'https://<Server>/record'),
  )
  ..addListener(
    HemendAsyncLogRecorder.file(filePath: 'example/test.log'),
  );

Continuous Integration ๐Ÿค–

Hemend Async Logger comes with a built-in GitHub Actions workflow powered by Very Good Workflows but you can also add your preferred CI/CD solution.

Out of the box, on each pull request and push, the CI formats, lints, and tests the code. This ensures the code remains consistent and behaves correctly as you add functionality or make changes. Code coverage is enforced using the Very Good Workflows.

hemend_async_log_recorder's People

Contributors

fmotalleb avatar

Watchers

 avatar

Forkers

ocean-oo

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.