Error log output method when using Bottle framework on GAE / Python

It's a very basic part, but when I started the sample locally, I got "Error: 500 Internal Server Error, that's it!" In the browser and the error log was not displayed on the console, so I was in trouble. I will leave it.

main.py



# -*- coding: utf-8 -*-
import logging

#↓ Import debug
from bottle import Bottle, debug

bottle = Bottle()

#↓ Debug mode ON!
debug(True)

@bottle.route('/')
def home():
  return 'Hello'

@bottle.error(404)
def error_404(error):
  return 'Sorry, Nothing at this URL.'

If you hit debug (True) for the time being, a detailed error log will be displayed at the time of Server Error. That's all, but python beginners didn't understand, yes ...

Recommended Posts

Error log output method when using Bottle framework on GAE / Python
Output Python log to console with GAE
Error, warning when using TensorFlow on Mac
To write to Error Repoting in Python on GAE
Error due to conflict between python when using gurobi
Check types_map when using mimetypes on AWS Lambda (Python)
Installation method when using RealSense from Python (pyenv edition)
Error around GUI when using PyQt5 on Ubuntu (WSL2)
Troublesome story when using Python3 with VScode on ubuntu
Error when executing Python commands without using Anaconda Prompt
Minimum memo when using Python on Mac (pyenv edition)
Output debug log with GAE dev_appserver.py on Eclipse + PyDev
Python framework bottle notes
I get an error when I try to raise Python to 3 series using pyenv on Catalina
Minimum notes when using Python on Mac (Homebrew edition)
[Selenium] Change log output destination when executing phantomjs in python3
Scripts that can be used when using bottle in Python
Error when playing with python
Broadcast on LINE using python
Resolved an error when putting pygame in python3 on raspberry pi
Error notification method when calling python from windows GUI or winsound.Beep
# Solution when pip install gives an error when using Anaconda on Windows 10
Error and solution when installing python3 with homebrew on mac (catalina 10.15)
[Python] Error and solution memo when using venv with pyenv + anaconda
Try to log in to Netflix automatically using python on your PC
A note on using tab completion when running Python interactively on Windows
When a Python beginner tried using Bottle, it worked unexpectedly easily.
[python] Error when installing library ramkan
Tips on Python file input / output
Error when building mac python environment
Introducing Python using pyenv on Ubuntu 20.04
Notes on using MeCab from Python
Preparing python using vscode on ubuntu
Support when installing pillow on python3.9
Study on Tokyo Rent Using Python (3-2)
Unit test log output with python
Notes on installing Python using PyEnv
[Python] Be careful when using print
Notes on using rstrip with python.
Study on Tokyo Rent Using Python (3-3)
Install Python framework django using pip
Interactively output BPE using python curses
Precautions when using phantomjs from python
When using MeCab with virtualenv python
Install Python on CentOS using pyenv
Precautions when using six with Python 2.5
[VS Code] ~ Tips when using python ~
When using regular expressions in Python
How to deal with OAuth2 error when using Google APIs from Python
Settings when using Python 3 requests and Beautiful Soup with crostini on Chromebook
Precautions and error handling when calling .NET DLL from python using pythonnet