Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

logzero in multiple files using import #359

Open
ivaltorta opened this issue Dec 3, 2020 · 0 comments
Open

logzero in multiple files using import #359

ivaltorta opened this issue Dec 3, 2020 · 0 comments

Comments

@ivaltorta
Copy link

ivaltorta commented Dec 3, 2020

  • logzero version: 1.6.3
  • Python version: 3.8.5
  • Operating System: Windows 10 (20H2 19042.630)

Description

Hello!
I'm having a little problem using logzero um more than one program. I have a main program (main_logzero.py) and it imports another program (import_logzero.py).
Both pyhon files has the handle for logzero, and each one with the respective logfile.
But, when I execute the main_logzero.py, it only logs in to the main_logzero.log and the import_logzero.log is empty.

As you can see in the main_logzero.log, it's logging:

[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!

But it's in the wrong file (it should be at import_logzero.log - that's empty)...

Am I doing something wrong with the logzero?

What I Did

C:\Users\igorv\logzero>dir
 O volume na unidade C não tem nome.
 O Número de Série do Volume é 6E10-B93F

 Pasta de C:\Users\igorv\logzero

03/12/2020  12:08    <DIR>          .
03/12/2020  12:08    <DIR>          ..
03/12/2020  11:56               195 import_logzero.py
03/12/2020  11:56               241 main_logzero.py
03/12/2020  12:08    <DIR>          old


               2 arquivo(s)            436 bytes
               3 pasta(s)   315.415.105.536 bytes disponíveis

C:\Users\igorv\logzero>python --version
Python 3.8.5

C:\Users\igorv\logzero>python main_logzero.py
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 0 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 1 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 2 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 3 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 4 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 5 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 6 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 7 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 8 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 9 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 10 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 11 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 12 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 13 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 14 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 15 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 16 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 17 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 18 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 19 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 20 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 21 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 22 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 23 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 24 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 25 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 26 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 27 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 28 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 29 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 30 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 31 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 32 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 33 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 34 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 35 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 36 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 37 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 38 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 39 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 40 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 41 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 42 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 43 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 44 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 45 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 46 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 47 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 48 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 49 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 50 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 51 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 52 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 53 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 54 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 55 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 56 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 57 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 58 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 59 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 60 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 61 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 62 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 63 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 64 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 65 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 66 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 67 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 68 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 69 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 70 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 71 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 72 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 73 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 74 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 75 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 76 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 77 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 78 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 79 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 80 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 81 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 82 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 83 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 84 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 85 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 86 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 87 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 88 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 89 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 90 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 91 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 92 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 93 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 94 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 95 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 96 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 97 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 98 - 0
[I 201203 12:09:13 import_logzero:6] import_logzero - execution OK!
[I 201203 12:09:13 main_logzero:8] main_logzero: 99 - 0

C:\Users\igorv\logzero>dir
 O volume na unidade C não tem nome.
 O Número de Série do Volume é 6E10-B93F

 Pasta de C:\Users\igorv\logzero

03/12/2020  12:09    <DIR>          .
03/12/2020  12:09    <DIR>          ..
03/12/2020  12:09                 0 import_logzero.log
03/12/2020  11:56               195 import_logzero.py
03/12/2020  12:09            12.590 main_logzero.log
03/12/2020  11:56               241 main_logzero.py
03/12/2020  12:08    <DIR>          old
03/12/2020  12:09    <DIR>          __pycache__
               4 arquivo(s)         13.026 bytes

               4 pasta(s)   315.415.023.616 bytes disponíveis

C:\Users\igorv\logzero>

logzero.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant