Buenos dias,
soy nuevo haciendo bots, he escrito las lineas para crear el logo pero no se como se mira dicho log. ¿donde se crea el fichero? ¿como puedo mirarlo?
Gracias
import logging
# Enable logging
#Establecemos el logeo
logging.basicConfig(filename='./log.log',filemode='a',format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',level=logging.INFO)
logger = logging.getLogger(__name__)
def start(update, context):
"""Send a message when the command /start is issued."""
update.message.reply_text('Bienvenidos al Scape de Joao')
No tienes permitido ver los links. Registrarse o Entrar a mi cuenta("Msg de %s - %s",bot,update) #Loggeamos la informacion
def error(update, context):
"""Log Errors caused by Updates."""
logger.warning('Update "%s" caused error "%s"', update, context.error)
dp.add_error_handler(error)
soy nuevo haciendo bots, he escrito las lineas para crear el logo pero no se como se mira dicho log. ¿donde se crea el fichero? ¿como puedo mirarlo?
Gracias
import logging
# Enable logging
#Establecemos el logeo
logging.basicConfig(filename='./log.log',filemode='a',format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',level=logging.INFO)
logger = logging.getLogger(__name__)
def start(update, context):
"""Send a message when the command /start is issued."""
update.message.reply_text('Bienvenidos al Scape de Joao')
No tienes permitido ver los links. Registrarse o Entrar a mi cuenta("Msg de %s - %s",bot,update) #Loggeamos la informacion
def error(update, context):
"""Log Errors caused by Updates."""
logger.warning('Update "%s" caused error "%s"', update, context.error)
dp.add_error_handler(error)