Skip to content

Commit dffb49f

Browse files
committed
adding run example
1 parent 5a65192 commit dffb49f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

examples/log_example.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,18 @@ def log_big_string(lqty=100, size=256):
5757
div_zero_two(x=1, y=0)
5858
# after configuring logging
5959
# use loguru to log messages
60-
logger.debug('This is a debug message')
61-
logger.info('This is an info message')
62-
logger.error('This is an error message')
63-
logger.warning('This is a warning message')
64-
logger.critical('This is a critical message')
60+
logger.debug('This is a loguru debug message')
61+
logger.info('This is an loguru info message')
62+
logger.error('This is an loguru error message')
63+
logger.warning('This is a loguru warning message')
64+
logger.critical('This is a loguru critical message')
6565

6666
# will intercept all standard logging messages also
67-
logging.debug('This is a debug message')
68-
logging.info('This is an info message')
69-
logging.error('This is an error message')
70-
logging.warning('This is a warning message')
71-
logging.critical('This is a critical message')
67+
logging.debug('This is a standard logging debug message')
68+
logging.info('This is an standard logging info message')
69+
logging.error('This is an standard logging error message')
70+
logging.warning('This is a standard logging warning message')
71+
logging.critical('This is a standard logging critical message')
7272

7373

7474
def worker(wqty=1000, lqty=100, size=256):
@@ -107,5 +107,5 @@ def main(wqty: int = 100, lqty: int = 10, size: int = 256, workers: int = 16, th
107107
if __name__ == "__main__":
108108
from time import time
109109
start = time()
110-
main(wqty=10, lqty=100, size=64, workers=8, thread_test=False, process_test=True)
110+
main(wqty=20, lqty=100, size=64, workers=8, thread_test=False, process_test=True)
111111
print(f"Execution time: {time()-start:.2f} seconds")

0 commit comments

Comments
 (0)