Skip to content

Commit

Permalink
add help for setLogLevel and getLogLevel (#3492)
Browse files Browse the repository at this point in the history
  • Loading branch information
muescha authored Dec 10, 2023
1 parent 53ae599 commit 6de44c6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions extensions/hotkey/hotkey.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,27 @@ local hotkey = require "hs.libhotkey"
local keycodes = require "hs.keycodes"
local alert = require'hs.alert'
local log = require'hs.logger'.new('hotkey','info')

--- hs.hotkey.setLogLevel(loglevel)
--- Method
--- Sets the log level of the hotkey logger instance
---
--- Parameters:
--- * loglevel - can be 'nothing', 'error', 'warning', 'info', 'debug', or 'verbose'; or a corresponding number between 0 and 5
---
--- Returns:
--- * None
hotkey.setLogLevel=log.setLogLevel

--- hs.hotkey.getLogLevel() -> number
--- Method
--- Gets the log level of the hotkey logger instance
---
--- Parameters:
--- * None
---
--- Returns:
--- * The log level of the hotkey logger as a number between 0 and 5
hotkey.getLogLevel=log.getLogLevel

local tonumber,pairs,ipairs,type,tremove,tinsert,tconcat,tsort = tonumber,pairs,ipairs,type,table.remove,table.insert,table.concat,table.sort
Expand Down

0 comments on commit 6de44c6

Please sign in to comment.