Skip to content

Instantly share code, notes, and snippets.

@srkiNZ84
Last active December 18, 2019 03:40
Show Gist options
  • Save srkiNZ84/1e3ccd19f1909ea3f9e94920b28caf54 to your computer and use it in GitHub Desktop.
Save srkiNZ84/1e3ccd19f1909ea3f9e94920b28caf54 to your computer and use it in GitHub Desktop.
Python file to generate erally long log lines
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"]
#!/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