1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

custom logfile?

Discussion in 'XenForo Development Discussions' started by Helmut2509, Apr 10, 2014.

  1. Helmut2509

    Helmut2509 Member

    I would like to know if it is possible to create a custom logfile integrated in the tools->logs system.
    I want to store there important information coming from cronjobs.
     
  2. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    I think it would be nice to have this in XenForo Suggestions

    There isn't a way that I know of, and it would be incredibly useful...

    In the very beginning I was doing a XenForo_Error::log, but I had to stop because people are not used to see "INFO" messages in the error log. And in XenForo 1.2 the devs added a nagging screen on the admincp whenever there is an error so that didn't help at all

    You could, rollout your own, which really is duplicating the error log.... that seems to be what the devs have done because we have the spam log, the spam cleaner log, the proxy log, the user change log, the moderator log .....

    Or, you could go Vanilla and store things in the file system. The directory internal_data is writable by default so you could create a .log file and append to it. It wouldn't be accessible from the AdminCP, of course, depending on your needs.
     

Share This Page