diff --git a/development/docker-compose.development.yml b/development/docker-compose.development.yml index a51a1c1..97f537d 100644 --- a/development/docker-compose.development.yml +++ b/development/docker-compose.development.yml @@ -35,6 +35,8 @@ services: hostname: socket volumes: - ${PROJECT_ROOT}/websocket:/app + - ${PROJECT_ROOT}/logs:/var/www/html/pathfinder/history/map + - ${PROJECT_ROOT}/static/socket/logrotate:/etc/logrotate.d/pathfinder networks: pf: aliases: diff --git a/docker-compose.yml b/docker-compose.yml index 5b1fca3..c70086b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,6 +35,8 @@ services: hostname: socket volumes: - ${PROJECT_ROOT}/websocket:/app + - ${PROJECT_ROOT}/logs:/var/www/html/pathfinder/history/map + - ${PROJECT_ROOT}/static/socket/logrotate:/etc/logrotate.d/pathfinder networks: pf: aliases: diff --git a/logs/map_1.log b/logs/map_1.log new file mode 100644 index 0000000..8deaed1 --- /dev/null +++ b/logs/map_1.log @@ -0,0 +1 @@ +{"message":"system 'Ichoriya'","context":{"data":{"object":{"objId":9,"objName":"Ichoriya"},"character":{"id":525344969,"name":"atrophocy"},"channel":{"channelId":1,"channelName":"erw"},"main":[],"formatted":"Deleted system 'Ichoriya' #9"},"tag":"danger"},"level":200,"level_name":"INFO","channel":"map_1","datetime":"2022-02-07T12:26:24.171333+00:00","extra":{"path":"/api/rest/System/9","ip":"172.20.0.1","thumb":{"url":"https://images.evetech.net/Character/525344969_128.jpg"}}} diff --git a/logs/map_1.log.1.gz b/logs/map_1.log.1.gz new file mode 100644 index 0000000..e88226e Binary files /dev/null and b/logs/map_1.log.1.gz differ diff --git a/static/socket/logrotate b/static/socket/logrotate new file mode 100644 index 0000000..ef59927 --- /dev/null +++ b/static/socket/logrotate @@ -0,0 +1,8 @@ +/var/www/html/pathfinder/history/map/*.log { + daily + missingok + rotate 14 + compress + notifempty + endscript +} \ No newline at end of file