summaryrefslogtreecommitdiff
path: root/xmake/core/base/utils.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-08-22 00:34:06 +0800
committerruki <[email protected]>2024-08-23 08:14:32 +0800
commitd19c47eac0a44b0bfbbf2e4ce7cf98713720a245 (patch)
tree7dda2c3d769c40aeb9d66efbfff91c7ff3d4d34c /xmake/core/base/utils.lua
parent84f170de57c8c58d37ccdefed7ad99e6c0c3ae48 (diff)
suppress logs
Diffstat (limited to 'xmake/core/base/utils.lua')
-rw-r--r--xmake/core/base/utils.lua34
1 files changed, 0 insertions, 34 deletions
diff --git a/xmake/core/base/utils.lua b/xmake/core/base/utils.lua
index e8b6401f6..5125d224e 100644
--- a/xmake/core/base/utils.lua
+++ b/xmake/core/base/utils.lua
@@ -142,49 +142,25 @@ end
-- print format string with newline
function utils.print(format, ...)
-
- -- check
assert(format)
-
- -- init message
local message = string.tryformat(format, ...)
-
- -- trace
utils._print(message)
-
- -- write to the log file
log:printv(message)
end
-- print format string without newline
function utils.printf(format, ...)
-
- -- check
assert(format)
-
- -- init message
local message = string.tryformat(format, ...)
-
- -- trace
utils._iowrite(message)
-
- -- write to the log file
log:write(message)
end
-- print format string and colors with newline
function utils.cprint(format, ...)
-
- -- check
assert(format)
-
- -- init message
local message = string.tryformat(format, ...)
-
- -- trace
utils._print(colors.translate(message))
-
- -- write to the log file
if log:file() then
log:printv(colors.ignore(message))
end
@@ -192,17 +168,9 @@ end
-- print format string and colors without newline
function utils.cprintf(format, ...)
-
- -- check
assert(format)
-
- -- init message
local message = string.tryformat(format, ...)
-
- -- trace
utils._iowrite(colors.translate(message))
-
- -- write to the log file
if log:file() then
log:write(colors.ignore(message))
end
@@ -237,8 +205,6 @@ end
-- add warning message
function utils.warning(format, ...)
-
- -- check
assert(format)
-- format message