custom_log_space 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/custom_log_space/{log_writer.rb → base_helper/log_writer.rb} +1 -1
- data/lib/custom_log_space/base_subscriber.rb +3 -3
- data/lib/custom_log_space/version.rb +1 -1
- metadata +4 -4
- /data/lib/custom_log_space/{log_formatter.rb → base_helper/log_formatter.rb} +0 -0
- /data/lib/custom_log_space/{thread_manager.rb → base_helper/thread_manager.rb} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c3499fa8649b5c47d67508aa782bbc432da75450f1853050b1c10f444508112
|
|
4
|
+
data.tar.gz: 3e680a83be530a4c4ee0b684f113a81b2cfddd0ebf0b817b9131b0553b04cace
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7167f9dc93e5903cb2c82964b2109b8e58b13a2cc8c084ed47f1ad73877a1ca43d94d20bdec4c676deaba767a0f0ae8c2eb2f07157b34a1090c9309748ccdde6
|
|
7
|
+
data.tar.gz: 687f7ca2dc683d757fe2f097857676b8818a6a4a675361b9cebdf10930d2dcf5297637c32f39ea763c2df1b517a01293c285fe60c83303acfaddfc067bd343c5
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.1.3] - 2023-09-15
|
|
4
|
+
### Changed
|
|
5
|
+
The retention period for logs within the date directory has been changed from 3 days to 2 days.
|
|
6
|
+
|
|
3
7
|
## [0.1.2] - 2023-09-15
|
|
4
8
|
### Changed
|
|
5
9
|
Modified the file path structure for logs. New structure: log/custom_log_space/#{controller_name}/#{action_name}/#{date}/#{time}.log.
|
data/README.md
CHANGED
|
@@ -53,7 +53,7 @@ user log % tree
|
|
|
53
53
|
|
|
54
54
|
## Retention Policy
|
|
55
55
|
|
|
56
|
-
To prevent excessive disk usage, logs within the `date` directory are retained for only
|
|
56
|
+
To prevent excessive disk usage, logs within the `date` directory are retained for only 2 days. Any logs older than this retention period will be automatically deleted, starting with the oldest. Ensure that you archive or backup logs if you need them for longer periods.
|
|
57
57
|
|
|
58
58
|
## Ignoring Logs in Git
|
|
59
59
|
If needed, add `/log/custom_log_space/*` to your `.gitignore` to ensure the logs aren't committed to your repository.
|
|
@@ -23,7 +23,7 @@ module CustomLogSpace
|
|
|
23
23
|
return unless Dir.exist?(action_directory)
|
|
24
24
|
|
|
25
25
|
# If there are more than 3 date-directories, remove the oldest ones
|
|
26
|
-
remove_oldest_directory while all_directories.size >
|
|
26
|
+
remove_oldest_directory while all_directories.size > 2
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
def all_directories
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require "custom_log_space/log_formatter"
|
|
4
|
-
require "custom_log_space/thread_manager"
|
|
5
|
-
require "custom_log_space/log_writer"
|
|
3
|
+
require "custom_log_space/base_helper/log_formatter"
|
|
4
|
+
require "custom_log_space/base_helper/thread_manager"
|
|
5
|
+
require "custom_log_space/base_helper/log_writer"
|
|
6
6
|
|
|
7
7
|
module CustomLogSpace
|
|
8
8
|
# CustomLogSpace::Subscriber is a class for handling custom logging in Rails applications.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: custom_log_space
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- nishikawa1031
|
|
@@ -47,11 +47,11 @@ files:
|
|
|
47
47
|
- Rakefile
|
|
48
48
|
- custom_log_space.gemspec
|
|
49
49
|
- lib/custom_log_space.rb
|
|
50
|
+
- lib/custom_log_space/base_helper/log_formatter.rb
|
|
51
|
+
- lib/custom_log_space/base_helper/log_writer.rb
|
|
52
|
+
- lib/custom_log_space/base_helper/thread_manager.rb
|
|
50
53
|
- lib/custom_log_space/base_subscriber.rb
|
|
51
|
-
- lib/custom_log_space/log_formatter.rb
|
|
52
|
-
- lib/custom_log_space/log_writer.rb
|
|
53
54
|
- lib/custom_log_space/sql_subscriber.rb
|
|
54
|
-
- lib/custom_log_space/thread_manager.rb
|
|
55
55
|
- lib/custom_log_space/version.rb
|
|
56
56
|
- lib/custom_log_space/view_subscriber.rb
|
|
57
57
|
- sig/custom_log_space.rbs
|
|
File without changes
|
|
File without changes
|