Giter Club home page Giter Club logo

java-wua-app-logme's Introduction

What is this?

Logme is an HTTP web servlet that displays and logs incoming requests. It reads requests from HttpServletRequest and writes them to log and to HttpServletResponse (i.e. like a mirror, playing requests back to originating web browsers).

It is a useful tool for examining HTTP requests. For example, you can use Logme as a webhook URL, and visualize what the incoming webhook requests look like. As a matter of fact, I built this tool to figure out what Pub/Sub push messages look like, and how frequently they are pushed.

Try it out

To see how this works, here is a deployed version running on Google App Engine.

http://wualogme.appspot.com/logme

It displays your request and allows you to see how your request is received by the web server. You can access the link from a web browser or from curl.

e.g.

#GET request
curl 'https://wualogme.appspot.com/logme?colour=blue&behaviour=normal&organisation=acme'

#POST request
curl -d 'abc=def' 'https://wualogme.appspot.com/logme?colour=blue&behaviour=normal&organisation=acme'
curl -d 'abc=def' 'https://wualogme.appspot.com/logme?colour=blue&behaviour=normal&organisation=acme,globex'
curl -d @sample_message.json --header "Content-Type: application/json" https://wualogme.appspot.com/logme?token=xyz

Download

git clone https://github.com/githubwua/logme/

Prerequisites

  • Google Cloud SDK
  • A Google Cloud Project (with Google App Engine enabled)
  • Maven
  • Java

Installation

Installing Google Cloud SDK on Linux is easy, just do this:

curl https://sdk.cloud.google.com | bash
gcloud components install app-engine-java

If you need help with installing any of the prerequisites, see: https://cloud.google.com/appengine/docs/standard/java/quickstart-java8

Deploy

This is how I deployed this app to Google App Engine:

# Modify YOUR_GAE_PROJECT below to match your own GAE project name
# You just need to set this once if you are deploying for the first time.

# gcloud config set project YOUR_GAE_PROJECT
cd logme
mvn appengine:deploy

java-wua-app-logme's People

Contributors

githubwua avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.