Save server.log on server stop.

Discussion in 'Archived: Plugin Requests' started by jj3502, Dec 11, 2012.

  1. Offline

    jj3502

    Plugin category: Admin

    Suggested name: Log Saver

    What I want: My server host deletes my server.log file when the server is started. Unfortunately they can't change this per user. I need a plugin that will move the server.log to a "logs" folder and rename it to "year-month-day (auto-incrementing number).
    I found a plugin that dose a simalar thing, but only on server starts, I can't use this because logs get deleted on start, i need it to delete when I server stops (During the "onDisable" event?).
    I'm currently learning java myself so I'd also be happy if someone could explain how to go about writing it.

    Ideas for commands: None

    Ideas for permissions: None

    When I'd like it by: ASAP
     
  2. Offline

    app1egenius93

    I think I can do this, but your host may not be happy. It could violate their ToS (maybe). Is the similar plugin ServerLogSaver?

    I could do this but I cannot be held responsible if your host terminates your server. I'll try and have it done by next Friday :D
     
  3. Offline

    jj3502

    I already talked to them about it, they recommended I install a plugin for it. Yes, ServerLogSaver, is what i need, but have it save them on stop.

    If you could do it, I would be very grateful :D

    From my host:
     
  4. Offline

    app1egenius93

    Okay, I can do this, just give me about a week as college is a pain sometimes :p

    I can also add a configurable option to save x number of files or have a max size of files so that they auto delete old logs or keep your logs folder clean?
     
  5. Offline

    jj3502

    If its not too much trouble, an option for x number of files would be good.
     
  6. Offline

    app1egenius93

    You got it! I'll keep you informed

    Have alpha jar done, testing for the weekend then it will go to beta Sunday night after fixing bugs that testers tell me. Then next week is beta stage and after passing beta week successfully it will move to release and I'll post a bukkitdev link.

    Name is: SaveLog though because LogSaver is similar to another plugin

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
  7. Offline

    jj3502

    I forgot to mention this in the OP, but can you make it compatible with CB 1.2.5-R4.0?
    I'm running a tekkit server and we're still on 1.2.5. I'm really really very sorry i din't mention this in the OP, I hope you don't have to change it to much <3.
     
  8. Offline

    app1egenius93

    Haha no problem. I think it's compatible with 1.2.5 but haven't tried. It should work just fine as its more based on Java and not bukkit methods.

    I love tekkit too!

    http://dev.bukkit.org/server-mods/savelog/

    Just finishing testing and such before uploading files

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
  9. Offline

    app1egenius93

Share This Page