Skip to content

Commit b24acd1

Browse files
committed
fix a few typos
1 parent 3048ba0 commit b24acd1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

example-project/example-project.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# This is an example project of Logtail python integration
2-
# This project shocases how to use Logtail in your python projects
3-
# For more infromation please visit https://github.com/logtail/logtail-python
2+
# This project showcases how to use Logtail in your python projects
3+
# For more information please visit https://github.com/logtail/logtail-python
44

55
# SETUP
66

7-
# Import Logtail client library and deault logging library
7+
# Import Logtail client library and default logging library
88
from logtail import LogtailHandler
99
import logging
1010
import sys
@@ -21,19 +21,19 @@
2121
logger = logging.getLogger(__name__)
2222
logger.handlers = []
2323
logger.setLevel(logging.DEBUG) # Set minimal log level
24-
logger.addHandler(handler) # asign handler to logger
24+
logger.addHandler(handler) # assign handler to logger
2525

2626
# LOGGING EXAMPLE
27-
# Following code shocases logger usage
27+
# Following code showcases logger usage
2828

2929
# Send debug log using the debug() method
3030
logger.debug('I am using Logtail!')
3131

3232
# Send info level log about interesting events using the info() method
3333
logger.info('I love Logtail!')
3434

35-
# Send warning level log about warrying events using the warning() method
36-
# You can also add ecustom structured information to the log by passing it as a second argument
35+
# Send warning level log about worrying events using the warning() method
36+
# You can also add custom structured information to the log by passing it as a second argument
3737
logger.warning('Log structured data', extra={
3838
'item': {
3939
'url': "https://fictional-store.com/item-123",
@@ -42,16 +42,16 @@
4242
})
4343

4444
# Send error level log about errors in runtime using the error() method
45-
logger.error('Oops! An error occured!')
45+
logger.error('Oops! An error occurred!')
4646

47-
# Send critical level log about critical events in runtume using the critical() method
47+
# Send critical level log about critical events in runtime using the critical() method
4848
logger.critical('Its not working, needs to be fixes ASP!')
4949

5050
# Send exception level log about errors in runtime using the exception() method
5151
# Error level log will be sent. Exception info is added to the logging message.
5252
# This method should only be called from an exception handler.
5353
try:
54-
nonexisting_function() # Calling nonexisting function
54+
nonexisting_function() # Calling non-existing function
5555
except Exception as Argument:
5656
logger.exception("Error occurred while calling non-existing function") # Additional info will be added
5757
# OUTPUT:

0 commit comments

Comments
 (0)