Giter Club home page Giter Club logo

log4tc's Introduction

mbc log4TC

Help Wanted GitHub License GitHub Downloads (all assets, all releases) GitHub Downloads (all assets, latest release) Static Badge

Log4TC is an extension for TwinCAT3 by Beckhoff, allowing the generation of log messages directly from the PLC (Programmable Logic Controller). The messages can be transferred, filtered, evaluated, and forwarded to various outputs.

Log4TC consists of two parts: a PLC library and a Windows service.

Architecture

The log4TC service is typically installed on the same computer as the PLC, but for specific use cases, it can also be installed on a different computer for multiple controllers.

Features

  • Simple API for integration into the PLC
  • Structured logging (https://messagetemplates.org/)
  • Support for context properties at various levels
  • Efficient and modular
  • Free trial version available
  • Licensing through Beckhoff mechanism in dongle, terminal, or PC
  • Unlimited output possibilities (text file, database, cloud, etc.)

Outputs

Outputs

Log4TC implements outputs through a plugin system. By default, NLog output is active upon delivery. Output plugins are continuously expanded, with upcoming plugins for Graylog and InfluxDB.

We can also create custom outputs upon request.

Typical use cases for log4TC

  • Error tracking and alerting
  • Debugging sporadic errors without breakpoints
  • Sequence analysis in case of issues, even retrospectively
  • Statistical analysis, e.g., KPI

Next Steps

log4tc's People

Contributors

bqstony avatar dependabot[bot] avatar stegm avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

log4tc's Issues

PROD ready? How the licensing works?

I found this a few days ago.

I was curious about it and install it on my system for some testing. It´s exactly what im seeking for my smarthome project. It´s a simple und perfectly working solution for my case to write some logs to my graylog instance. So thank you for this work.

I have two Questions:
First: Is it production ready at this time? When not how is looking the roadmap to production ready state?
Second: This Beckhoff Lib need a License Key -> Does it cost something and how much? It´s a one time purchase or a subscription? And how can i get this license?

Thanks for your Feedback,
dkleber89

Pool: Ideas to clarify

  • senty.io
  • Timescale output
  • Exceptionless output
  • DataDog output
  • MQTT output
  • Rollbar output
  • Eventlogger TwinCAT V1+V2
  • logviewplus.com
  • compact log viewer (CLEF Format)
  • instrumentalapp.com output
  • statsite output
  • riemann.io output

Update to Ads lib v6

Es wäre möglich log4TC relativ einfach zu aktualisieren und die neue ADS v5 Bibliothek zu verwenden.
Siehe test PR

PRO

  • Neue Asynch lib
  • Ev Linux support / Docker --> Müsste aber noch getestet werden
  • Selfed deployed package möglich

Contra

  • Twincat minimal Version für v5 ist TwinCAT 3.1.4024

Offene Fragen

  • Brauchen wir das?
  • funktioniert es unter linux / Docker und wie?
  • Gibt es Performance Steigerung, höherer msg durchsatz?
  • Konflikt mit anderen output plugins?
  • muss es verschiedene Versionen geben, .net framework 4.6.1 und .net core (finde ich zu aufwendig)?

Plugins should be loaded when put into the APP Folder

Currently the plugins are loaded with the requirement to be referenced in the Program.cs

Reactivate the load of the assemblies to load plugins from the app folder

 .ConfigureServices((hostContext, services) =>
 {
     var plugins = new IPlugin[]
     {
         new NLogLog4TcOutputPlugin(),
         new GraylogLog4TcOutputPlugin(),
         new InfluxDbLog4TcOutputPlugin(),
         new SqlLog4TcOutputPlugin(),
     };

     foreach (var plugin in plugins)
     {
         plugin.ConfigureServices(services, hostContext.Configuration);
     }

     // TODO plugin funktioniert momentan nicht mit dritt-Nugets
     //services
     //    .AddPlugins(GetPluginPath())
     //    // ToDo: Differenziate output / input / ... configuration in PluginBuilder
     //    .AddOutputs(hostContext.Configuration);

     services
         .AddLog4TcAdsLogReceiver()
         .AddLog4TcDispatcher();
 });

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.