Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Discuss
  3. Logs from custom app

Logs from custom app

Scheduled Pinned Locked Moved Discuss
4 Posts 2 Posters 631 Views 2 Watching
  • 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.
  • E Offline
    E Offline
    ekevu123
    wrote on last edited by ekevu123
    #1

    I am running a custom python app on Cloudron and I am happy with that setup. However, I need better access to logs of what is happening and I am not really sure how to achieve that as I cannot save log files permanently inside the app. If I download the full logs from Cloudron, they only seem to give me access to the last 2 days or so.
    Is there a good solution that would let me monitor what the app does, perhaps even a few days back?

    I am open to everything, from improvised and easy-to-implement solutions up to third-party tools with GUI.

    1 Reply Last reply
    1
    • fbartelsF Offline
      fbartelsF Offline
      fbartels
      App Dev
      wrote on last edited by
      #2

      Hi @ekevu123,

      since it is already a custom app, the easiest option is to redirect log output to a file below /app/data. Ideally your program should also rotate said log file.

      1 Reply Last reply
      2
      • E Offline
        E Offline
        ekevu123
        wrote on last edited by
        #3

        Then they would still be overwritten with any app update, perhaps even at restart, wouldn't they? I think I need something a bit more permanent than that.

        1 Reply Last reply
        0
        • fbartelsF Offline
          fbartelsF Offline
          fbartels
          App Dev
          wrote on last edited by
          #4

          No, /app/data is persistent storage and would survive updates and restarts.

          1 Reply Last reply
          3
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search