Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • nickornotto 397 posts 900 karma points
    Jan 22, 2020 @ 19:37
    nickornotto
    0

    How to write logs to database rather than log txt file?

    We would like to write the errors to the database rather than to a file as it is easier to query.

    Any tips how to do it?

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Jan 27, 2020 @ 12:48
    Alex Skrypnyk
    100

    Hi Nick

    Are you using Umbraco 7?

    There is a file - /config/log4net.cofig that configures log4net

    I'm not log4net guru but I think you can specify how to write log entries there

    Thanks,

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft