2017. máj. 5. du. 7:02 ezt írta ("Oleg Broytman" ):
On Fri, May 05, 2017 at 04:50:07PM +0200, George Fischhof <
[email protected]> wrote:
> yes, something like that ... ;-) but I use windows, and I want the feature
> in Python, with a simple and elegant way (1-2 commands)
>
> 2017-05-05 16:14 GMT
I get a message back that I'm not subscribed to the mailing list, but see
my message in google groups. My sincerest apologies in advance, if this
appears several times for you. Anyways:
The logging module has an easy-to-setup logger:
import logging
logger = logging.getLogger(__name__)
Hi! Isn't it just basicConfig?
import logging
logging.basicConfig(
filename='test.log',
format='[%(asctime)s] %(name)s %(levelname)s: %(message)s',
level=logging.DEBUG,
)
log = logging.getLogger("TEST")
On Wed, May 10, 2017 at 08:40:01AM -0700, terj...@gmai
Hi! Isn't it just basicConfig?
>
> import logging
> logging.basicConfig(
> filename='test.log',
> format='[%(asctime)s] %(name)s %(levelname)s: %(message)s',
> level=logging.DEBUG,
> )
> log = logging.getLogger("TEST")
>
BasicConfig does not al