custom_log_space 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d0e3ad542c322fac2dae3da5cb1777a9ca18f6e60725e7886bf1bc21df9dce9
4
- data.tar.gz: 6b97fca2a8072335da8a712fc9884a7b7665a211d811dd51eb2e829126e8e6b6
3
+ metadata.gz: 4c3499fa8649b5c47d67508aa782bbc432da75450f1853050b1c10f444508112
4
+ data.tar.gz: 3e680a83be530a4c4ee0b684f113a81b2cfddd0ebf0b817b9131b0553b04cace
5
5
  SHA512:
6
- metadata.gz: a7a9bb6be97c059b281c76d58dda57f495125b05aa2cb406d5a1d348ed06b28299a77f4b8e24ce4c98b832745c932caef0fcfb5858a268e9013594e0414004eb
7
- data.tar.gz: 3311eff79f825be74b425a762ce1cd130c3ba4e20859cf08d46b21d2e5990edc51c1240a50233491c283317b75282e227a9e195ce87a55dc87fbcad245accc2a
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 3 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.
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 > 3
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CustomLogSpace
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
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.2
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