Logging in Conduit.

Home Forums Conduit: AEP Model Logging in Conduit.

Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #27856
    Ajay K
    Participant

    I have a custom app that runs on the conduit and currently I use Winston to log data into the log file. As of now overtime the log file grows significantly in size and I was wondering what is the easiest way to create rolling log files similar to the messages log files under the /var/logs folder? I was hoping curtail the log file reaches a certain size and rollover the next log messages to a new file. My custom app is implemented using NodeJS. Is there any custom logging API in the AEP version that provides this functionality out of box?

    Thanks,
    Ajay.

    #27859
    Jeff Hatch
    Keymaster

    I would recommend seeing if logrotate works. It is available on Conduit and is what is used with the syslog output.

    #27905
    Ajay K
    Participant

    Hi Jeff,

    I haven’t used logrotate before, is this some kind of configuration I need to implement on the conduit. Is this something I can setup so that it can be handled during the install of the custom app? I was hoping I could get an example scripts you could share, if I can set this up during the install of the custom app.

    Thanks,
    Ajay

    #27908
    Jason Reiss
    Keymaster
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.