File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1212-- See the License for the specific language governing permissions and
1313-- limitations under the License.
1414
15- require " logging"
16- require " logging.file"
15+ local Logging = require " logging"
16+ local fileLogging = require " logging.file"
1717
1818-- The logging module for logging to console or any file
1919Log = {}
2020
2121-- returns logger function for logging to console
2222function Log :getLogger ()
23- local logger = logging .new (function (self , level , message )
23+ local logger = Logging .new (function (self , level , message )
2424 print (level , message )
2525 return true
2626 end )
@@ -32,6 +32,6 @@ function Log:getFileLogger(filePath)
3232 if not filePath then
3333 error (" no filePath for logger provided" )
3434 end
35- local logger = logging . file (filePath )
35+ local logger = fileLogging (filePath )
3636 return logger
3737end
You can’t perform that action at this time.
0 commit comments