jczic / MicroWebSrv

A micro HTTP Web server that supports WebSockets, html/python language templating and routing handlers, for MicroPython (used on Pycom modules & ESP32)
https://github.com/jczic/MicroWebSrv
MIT License
640 stars 115 forks source link

No logging is implemented to allow INFO,DEBUG,WARNING,ERROR and so. #66

Closed nherriot closed 4 years ago

nherriot commented 4 years ago

More of a request of a feature than an error.... :-) It would be great if there was a logging utility to allow logging to be added easily to the web server. Something like the normal logging utility for python e.g.

import logging logging.basicConfig(level=logging.INFO) log = logging.getLogger("microWebSrv") log.debug("Failed message: %d(%s)", 100, "HTTP 500")

Kind regards, Nicholas.

jczic commented 4 years ago

Hi, Yes, good idea but microWebSrv must works on embedded platforms without that ... (with micropython).

jczic commented 4 years ago

Hello,

I released a fully new version (v2.0) of my web server here : github.com/jczic/MicroWebSrv2. Open source MIT, fully asynchronous, more robust, more fast and more efficient! It is delivered with a good documentation.

Thank you for your support and feedback. ☺️

Jean-Christophe Bos

Le mer. 18 sept. 2019 à 14:06, Nicholas Herriot notifications@github.com a écrit :

More of a request of a feature than an error.... :-) It would be great if there was a logging utility to allow logging to be added easily to the web server. Something like the normal logging utility for python e.g.

import logging logging.basicConfig(level=logging.INFO) log = logging.getLogger("microWebSrv") log.debug("Failed message: %d(%s)", 100, "HTTP 500")

Kind regards, Nicholas.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jczic/MicroWebSrv/issues/66?email_source=notifications&email_token=AAD2ALDULCDSXIMVWVVPH23QKIKUXA5CNFSM4IX5XVW2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HMD42VQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AAD2ALCFOWSVDCMXHGZNFV3QKIKUXANCNFSM4IX5XVWQ .

--

Sincèrement,

nherriot commented 4 years ago

I'll have a look. But I'm really happy with V1 :-) .... I've added logging etc... and promise to do a pull request for you to evaluate.

On Sun, 20 Oct 2019 at 12:08, J-Christophe Bos notifications@github.com wrote:

Hello,

I released a fully new version (v2.0) of my web server here : github.com/jczic/MicroWebSrv2. Open source MIT, fully asynchronous, more robust, more fast and more efficient! It is delivered with a good documentation.

Thank you for your support and feedback. ☺️

Jean-Christophe Bos

Le mer. 18 sept. 2019 à 14:06, Nicholas Herriot notifications@github.com a écrit :

More of a request of a feature than an error.... :-) It would be great if there was a logging utility to allow logging to be added easily to the web server. Something like the normal logging utility for python e.g.

import logging logging.basicConfig(level=logging.INFO) log = logging.getLogger("microWebSrv") log.debug("Failed message: %d(%s)", 100, "HTTP 500")

Kind regards, Nicholas.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/jczic/MicroWebSrv/issues/66?email_source=notifications&email_token=AAD2ALDULCDSXIMVWVVPH23QKIKUXA5CNFSM4IX5XVW2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HMD42VQ , or mute the thread < https://github.com/notifications/unsubscribe-auth/AAD2ALCFOWSVDCMXHGZNFV3QKIKUXANCNFSM4IX5XVWQ

.

--

Sincèrement,

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jczic/MicroWebSrv/issues/66?email_source=notifications&email_token=AAB5BAXB3AEUJBA3VU4QW6DQPQ3ZVA5CNFSM4IX5XVW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBYHVII#issuecomment-544242337, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB5BAUUX4X27CVOHUXLKWTQPQ3ZVANCNFSM4IX5XVWQ .