Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50fc8df
commit 1036c2f
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Clever programming language | ||
* Copyright (c) Clever Team | ||
* | ||
* This file is distributed under the MIT license. See LICENSE for details. | ||
*/ | ||
|
||
/** | ||
* Example of std.logging module. | ||
*/ | ||
|
||
import std.*; | ||
import modules.std.logging.logger.*; | ||
|
||
var logger = getLogger('test'); | ||
logger.warning('Sample warning!'); | ||
|
||
// Disabling waring reports | ||
logger.setEnabledLevels(ALL ^ WARNING); | ||
logger.warning('Do not print this warning!'); | ||
logger.info('This is an info!'); |