Skip to content
Magenaut

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

logfile

How to create a logfile in php

October 14, 2022 by Magenaut

I want to create a logfile for my system to register/log every action they do inside the system. But I have no idea how to do it.

Categories PHP, Q&A Tags logfile, php Leave a comment

Node.js console.log() in txt file

October 6, 2022 by Magenaut

I have another question (last question). At the moment i am working on a Node.js project and in this I have many console.log() functions. This has worked okay so far but I also want everything that’s written to the console to also be written in a log-file. Can someone please help me?

Categories Node.js, Q&A Tags console.log, file, javascript, logfile, node.js Leave a comment

Node.js monitor file for changes and parse them

October 3, 2022 by Magenaut

I need to monitor a file for changes. Due to a large amount of new entries to this file I would need to ‘monitor’ this file. I would need to get the new inserted content to this file to be able to parse this content.

Categories Node.js, Q&A Tags javascript, logfile, node.js, watch Leave a comment

Get last n lines of a file, similar to tail

August 21, 2022 by Magenaut

I’m writing a log file viewer for a web application and for that I want to paginate through the lines of the log file. The items in the file are line based with the newest item at the bottom.

Categories Python, Q&A Tags file, file-io, logfile, python, tail Leave a comment

Recent Comments

  • silverplugins217 on How to add placeholder for contact form7 for dropdown?
  • Shreyas Ikhar on How to add a custom CSS class to core blocks in Gutenberg editor?
  • Magenaut on How to call function on timer ASP.NET MVC
  • Ebaad Uddin on How to call function on timer ASP.NET MVC
  • michealSmith07 on Is there a way to dynamically refresh the less command?

Tags

.net adobe-illustrator adobe-photoshop ajax arrays asp.net asp.net-core asp.net-mvc bash c# css database django eloquent express html java javascript jquery json laravel laravel-4 laravel-5 laravel-8 linux list mongodb mongoose mysql node.js npm pandas php python python-3.x react-hooks react-native react-router reactjs redux regex sql string typescript wordpress
© 2023 Magenaut • Built with GeneratePress