Coder Social home page Coder Social logo

ktor-client-logging's Introduction

Ktor Client Logging

Build CodeFactor ktlint

Maven Central GitHub

Warning
From version 0.3.0 all package names have been renamed to match new artifact group id.

Logging feature for Ktor-Client

Installation

HttpClient {
    install(ClientLogging) {
        logFullUrl = true
        logHeaders = false
        logBody = false
        logger = ... // optionally your logger object
    }
}

Experimental status

Logging for Ktor Client uses some experimental Ktor API and therefore unfortunately there is no guarantee that there will no compatibility breaks between Ktor versions.

As a matter of fact, that’s exactly what happened between versions 1.2 and 1.3.

Keep that in mind.

Ktor support

Ktor version Ktor-Logging version

1.6

>= 0.2

1.3

0.2

1.2

0.1

ktor-client-logging's People

Contributors

koriit avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

ktor-client-logging's Issues

Fix tests concurrency issues

For some reason test sometimes fail. Possibly due to some race condition. This is especially true for GitHub pipelines.

Feature request: alternate log formats

Thanks for this library. It would be very helpful to allow different formats for the log output.

For example, imagine logging requests in the form of a curl command-line to allow copy-pasting it to the terminal or Postman.

JSON format would also be useful, or any of a number of other standard HTTP request/response file formats.

For an example of prior work along these lines, I found https://github.com/zalando/logbook#formatting

Thanks

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.