Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Resolved an issue where it was opening a file every time the logger wrote.
The self.date test was inadequate because self.date was never set. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
37076052925103829bfd379a8bbc21a4 |
| User & Date: | llmII 2019-07-12 02:05:10 |
Context
| 2019-07-12 02:14 | Release new rockspec. | Leaf check-in: 215ab5c5f6 user: llmII tags: trunk | |
| 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:42 | Merging 0.1 branch into trunk - | check-in: 084886ee3b user: llmII tags: trunk | |
Changes
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
|
| ︙ | ︙ |