[Issue 23840] New: log(str) is not work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 15 15:55:55 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23840
Issue ID: 23840
Summary: log(str) is not work
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: major
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: 1499874170 at qq.com
For std/logger/package.d
The comments tell me:
The easiest way to create a log message is to write:
-------------
import std.logger;
void main() {
log("Hello World");
}
-------------
But I created a test project:
(test.d)
import std.logger;
void main(string[] args)
{
log("test");
}
It is not any output.
But if I change it:
(test.d)
import std.logger;
void main(string[] args)
{
log(LogLevel.info, "test");
}
It is working.
--
More information about the Digitalmars-d-bugs
mailing list