Last active
          December 18, 2019 03:40 
        
      - 
      
 - 
        
Save srkiNZ84/1e3ccd19f1909ea3f9e94920b28caf54 to your computer and use it in GitHub Desktop.  
    Python file to generate erally long log lines
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | FROM python:3 | |
| WORKDIR /usr/src/app | |
| #COPY requirements.txt ./ | |
| #RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| CMD [ "python", "./long_logger.py"] | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/python3 | |
| import logging | |
| print("Starting to generate logs") | |
| logging.basicConfig(level=logging.DEBUG) | |
| while(True): | |
| string = "f" | |
| numKbs = 32 | |
| kb_string = string * numKbs * 1024 | |
| #print("long string is " + kb_string) | |
| logging.debug(kb_string) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment