FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Changing the fusionauth logging format

    Scheduled Pinned Locked Moved
    Q&A
    logging json logback
    1
    2
    2.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • danD
      dan
      last edited by

      Is there a way to change the fusionauth logging format? Say if for instance I wanted it to log everything into json?

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      1 Reply Last reply Reply Quote 0
      • danD
        dan
        last edited by

        There's not really a supported way to modify the FusionAuth logging format.

        In theory you could do it manually but dropping in your own version of logback.xml and adding the necessary jars to the classpath.

        Here is an example of JSON with logback. https://github.com/larose/logback-json-example

        I think you’d have to add in the JSON logback jar since we do not ship with it.

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • First post
          Last post