lua-simplelog  Check-in [90a6b9c556]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Merge fixes from trunk.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 0.1
Files: files | file ages | folders
SHA3-256: 90a6b9c55676b8a214a44624029f8c923a1f293188271a4bd3267cec6d6e82a9
User & Date: llmII 2019-07-12 02:05:52
Context
2019-07-12 02:07
Release 0.1.1 Leaf check-in: 26a2e90b7b user: llmII tags: 0.1.1, release-0.1.1
2019-07-12 02:05
Merge fixes from trunk. Leaf check-in: 90a6b9c556 user: llmII tags: 0.1
2019-07-12 02:05
Resolved an issue where it was opening a file every time the logger wrote. check-in: 3707605292 user: llmII tags: trunk
2019-07-12 01:34
Finalized 0.1.0 lua rock. check-in: f2896f73f2 user: llmII tags: 0.1
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to simplelog.lua.

72
73
74
75
76
77
78

79
80
81
82
83
84
85
      end
    end
  end

  local function open_file(self)
    local fname = self.dir .. os.date '%d.%m.%Y' .. '-' .. self.name .. '.log'
    self.file = io.open(fname, 'a')

  end

  local function get_file(self)
    if not self.date then
      open_file(self)
    else
      if os.date '%d.%m.%Y' ~= self.date then







>







72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
      end
    end
  end

  local function open_file(self)
    local fname = self.dir .. os.date '%d.%m.%Y' .. '-' .. self.name .. '.log'
    self.file = io.open(fname, 'a')
    self.date = os.date '%d.%m.%Y'
  end

  local function get_file(self)
    if not self.date then
      open_file(self)
    else
      if os.date '%d.%m.%Y' ~= self.date then