import
logging
from
mux
import
MuxStreamHandler
logger
=
logging.getLogger(__name__)
handler
=
MuxStreamHandler()
handler.setLevel(logging.DEBUG)
logger.addHandler(handler)
logger.setLevel(logging.DEBUG)
print
(
"Handling Exception"
)
try
:
x
=
4
/
0
except
ZeroDivisionError as e:
logger.exception(
'Error : %s'
, e)
print
(
"Adding long text : "
)
logger.info("So, this
is
the way you are expected to answer\
“Why Should We Hire You?”
in
an interview. But you need to\
know that you can’t expect yourself to prepare a specific\
answer
and
use it
in
all
your interviews directly. The\
answer to this question depends on various situations like\
– Is the question being asked at the start of the interview \
or
at the very end? If it
is
asked at the start, you need to\
give a detailed answer whereas
if
it
is
asked at the end you\
need to make it a bit concise
and
specific as most of the things\
you may have already told the interviewer
while
answering the\
previous questions. Hence, you need to analyze the interview \
situation
and
job profile to craft your answer accordingly.\
For more : https:
/
/
www.geeksforgeeks.org
/
how
-
to
-
answer
-
why
-
\
should
-
we
-
hire
-
you
-
in
-
an
-
interview
/
")