Coder Social home page Coder Social logo

webserv's Introduction

webserv's People

Contributors

isadri avatar lkabuci avatar

Watchers

 avatar

webserv's Issues

Logger

  • add logger class it should behave a bit like nginx
  • that have different types of logs [Info, Warning, Connections(optional), Errors]
  • they should all inherit from an abstract Base class ALogger
  • we can have the builder design pattern for it

Examples:
at the end it should be like this when calling it

  • Error Logs (error level):
    2024/01/02 12:34:56 [error] 1234#1234: *56789 open() "/path/to/file" failed (2: No such file or directory)
    [date] [time] [level] [ip] [port]
    [message]
  • Access Logs (info level):
    192.168.1.100 - - [02/Jan/2024:12:34:56 +0000] "GET /example HTTP/1.1" 200 1234 "-" "Mozilla/5.0 ..."
    [ip] [date] [time] [request] [status] [size] [user_agent]
  • Info Logs (info level):
    2024/01/02 12:34:56 [info] 1234#1234: *56789 client closed connection (time=0.123) 2024/01/02 12:34:56 [info] 1234#1234: *56789 client
    [date] [time] [level] [ip] [port] [message]

Clang-tidy

Add clang-tidy for better code
checkout Clion default clang-tidy values and generate a .clang-tidy file from it

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.