A
A
Arthur Samurai2020-06-25 15:43:18
Python
Arthur Samurai, 2020-06-25 15:43:18

How to write logs to a string and bypass the antivirus?

There is a format='%(message)s' entry in the logger.
Is it possible to add a method or parameter so that the logs are written to the file in a line? This has been a problem for a long time, I was looking for information in the documentation, but in vain.
Just for convenience, I would like to do so.
And another question, antiviruses block some scripts that log Klava, for example, this can only be bypassed by converting to executables (and that's not a fact), or are there methods, maybe some libraries?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2020-06-25
@zvepb

according to the antivirus bypass log
- expensive

N
nnikolyaa, 2020-06-25
@nnikolyaa

Log entry example:

log = open('log.txt','a')
log.write('Что необходимо записать\n')
log.close()

Log.txt:
Что необходимо записать
\n - Moves the cursor down so that the log is written to a line.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question