www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Comple error in std.experimental.logger.core.d

reply Chris Piker <fake fakeU.edu> writes:
Using DMD64 (v2.068.2) on Linux CentOS 6.7, compiler was 
downloaded
from this link:

http://downloads.dlang.org/releases/2.x/2.068.2/dmd-2.068.2-0.fedora.x86_64.rpm

I get the following compile errors from the experimental logger 
class:

/usr/include/dmd/phobos/std/experimental/logger/core.d(702): 
Error: long has no effect in expression (cast(ubyte)160u)

/usr/include/dmd/phobos/std/experimental/logger/core.d(700): 
Error: long has no effect in expression (cast(ubyte)128u)

/usr/include/dmd/phobos/std/experimental/logger/core.d(698): 
Error: long has no effect in expression (cast(ubyte)96u)

... etc. going on for each instance of the enum core.LogLevel 
that I use
in my code.

Has anyone else seen this problem with the newest DMD?  Also, is 
there a work around.  I'm happy to provide any further 
information desired to debug the problem as I'm trying to bring D 
into my worksite to replace code that we've previously written 
using a combination of Python and C.

Thanks
Oct 27 2015
parent Chris Piker <fake fakeU.edu> writes:
On Tuesday, 27 October 2015 at 21:50:31 UTC, Chris Piker wrote:
 I get the following compile errors from the experimental logger 
 class:

 /usr/include/dmd/phobos/std/experimental/logger/core.d(702): 
 Error: long has no effect in expression (cast(ubyte)160u)
Solved: Finally found how to set the global log level for the entire app... import std.experimental.logger; globalLogLevel(LogLevel.warning); Could a list of the module-level functions be provided in the documentation page for std.experimental.logger ? Other modules such as std.file have this but it appears to be lacking for this one.
Oct 27 2015