Show All Projects
I wrote this to encourage people not to delete log files, while still keeping them from taking too much space. This was prompted by a situation where errors caused the logs to grow rapidly, so users would delete the logs to save space. Thus we had no logs to see what the errors actually were.

This is a quick little utility to monitor a log folder and compress and move the log files when they hit a certain size.


Timeline

Files

Screenshots

  BENCHMARKS  
Loading Time: Base Classes  0.0017
Controller Execution Time ( Project / Id )  0.0276
Total Execution Time  0.0294
  GET DATA  
No GET data exists
  MEMORY USAGE  
904,000 bytes
  POST DATA  
No POST data exists
  URI STRING  
project/id/8/LogSquish
  CLASS/METHOD  
project/id
  DATABASE:  smkprojects (Project:$db)   QUERIES: 5 (0.0081 seconds)  (Hide)
0.0006   SELECT *
FROM `ProjectResources`
WHERE `ProjectID` = '8' 
0.0051   SELECT *
FROM `Projects`
WHERE `ProjectID` = '8' 
0.0004   SELECT *
FROM `ProjectTags`
WHERE `ProjectID` = '8' 
0.0010   SELECT TagCOUNT(1) AS cnt
FROM 
`ProjectTags`
WHERE `Tag` != 'Private'
GROUP BY `Tag`
HAVING COUNT(1) >
0.0009   SELECT TagCOUNT(1) AS cnt
FROM 
`ProjectTags`
WHERE `Tag` != 'Private'
GROUP BY `Tag`
HAVING COUNT(1) > 
  HTTP HEADERS  (Show)
  CONFIG VARIABLES  (Show)