Git Product home page Git Product logo

hdm17-logs-extractor's Introduction

Hard Disk Manager 17 Advanced Logs Extractor

NPM Version GitHub Release GitHub Repo stars

The Hard Disk Manager 17 Advanced Logs Extractor is a TypeScript tool designed to monitor and process log file hdmengine_jobs.log in real-time and the past.

NOTE : This library is only for the log file hdmengine_jobs.log

Installation

To use the Log Watcher Library in your project, follow these steps:

  1. Install the library via npm:

    npm install hdm17-logs-extractor

    Or via yarn:

    yarn add hdm17-logs-extractor

Usage

To start using the Log Watcher Library, you need to import it into your project and initialize it with the path to the log file you want to monitor:

import logAPI from 'hdm17-logs-extractor';

const logWatcher = logAPI.initLogWatch('path/to/your/log/file.log');

logWatcher.on('lineChanged', (logInfo) => {
  console.log('Log changed:', logInfo);
});

logWatcher.on('error', (error) => {
  console.error('Error:', error);
});

// To stop watching the log file
logAPI.stopLogWatch(logWatcher);

API Reference

  • initLogWatch(logPath: string, firstScan: boolean = true): LogWatch Initializes a new LogWatch instance for a given log file. If firstScan is true, performs an initial scan of the log file.

  • stopLogWatch(logWatch: LogWatch): void Stops watching the log file and cleans up resources.

  • getLog(log: string): LogInfo Processes a log string and returns a LogInfo object representing it.

For more details, refer to the inline documentation in the code.

Contributing

Contributions to the project are welcome!

License

This project is licensed under the MPL-2.0 License - see the LICENSE file for details.

hdm17-logs-extractor's People

Contributors

canardconfit avatar

Watchers

 avatar

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.