Navigation

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

    Changing the fusionauth logging format

    Q&A
    logging json logback
    1
    2
    280
    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.
    • dan
      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
      • dan
        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