Skip to content

FbW47-1/logging-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logger

Schreibe eine Middleware, die immer dann wenn jemand die Seite Aufruft einen Log Entry in die log Datei schreibt.

Beispiel für log.txt

 2021-08-03T15:01:18.338Z: / 
 2021-08-03T15:02:58.182Z: /users 
 2021-08-03T15:02:58.243Z: /favicon.ico 
 2021-08-03T15:03:01.315Z: /contact 
 2021-08-03T15:03:12.126Z: /contact 

Hilfe:

https://blog.webdevsimplified.com/2019-12/express-middleware-in-depth/ https://egghead.io/lessons/node-js-write-or-append-to-a-file-in-node-js-with-fs-writefile-and-fs-writefilesync

https://stackoverflow.com/questions/3459476/how-to-append-to-a-file-in-node

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published