Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1024434 // Rotate all module's print logs

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (3632L/18K).

!7

cmodule RotateModuleLogs > DynEnabled {
  switchable int max = 500*1000;
  
  start {
    doEveryAndNow(10.0, r {
      if (!enabled) ret;
      for (S id : dm_listModuleIDs()) pcall {
        rotateStringBuffer_gen(dm_callOpt(id, '_actualPrintLog), max);
      }
    });
  }
}

Author comment

Began life as a copy of #1024272

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024434
Snippet name: Rotate all module's print logs
Eternal ID of this version: #1024434/3
Text MD5: f5723d75f0a453f4258055fd5bb9d546
Transpilation MD5: 0d857c8c31bfc4510a62d0e3b2822773
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-12 16:50:20
Source code size: 294 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 152 / 199851
Version history: 2 change(s)
Referenced in: [show references]