Giter VIP home page Giter VIP logo

Comments (6)

VBart avatar VBart commented on June 27, 2024 3

There are no access logs at the moment. You can utilize nginx for logging requests.
This feature is planned. As for now we'd like to collect any ideas and requirements, so please feel free to share.

from unit.

davide-romanini avatar davide-romanini commented on June 27, 2024 1

@binnnliu Just add a root element access_log pointing to a file, eg:

{
  "listeners": {
    "*:8300": {
      "application": "default"
    }
  },
  "applications": {
    "default": {
      "type": "php",
      "processes": 10,
      "root": "/app/public",
      "index": "index.php",
      "script": "index.php"
    }
  },
  "access_log": "/proc/self/fd/1"
}

It will generate something like:
192.168.99.1 - - [15/May/2018:14:19:58 +0000] "GET /foo HTTP/1.1" 200 65 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36"

from unit.

binnn6 avatar binnn6 commented on June 27, 2024

In change log, i find basic access logging is supported by now, but can't find any configure example anywhere. I don't know how to use it.

from unit.

binnn6 avatar binnn6 commented on June 27, 2024

Got it. Thanks. @davide-romanini

from unit.

BrainGithub avatar BrainGithub commented on June 27, 2024

unit is funy

from unit.

VBart avatar VBart commented on June 27, 2024

Initial support for access logging has been added in 204c394 and released with Unit 1.0.

from unit.

Related Issues (20)

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.