View source code
							
							
						
								Display the source code in std/experimental/logger/core.d from which this
								page was generated on github.
							
						
							Report a bug
							
						
								If you spot a problem with this page, click here to create a
								Bugzilla issue.
							
						
							
								Improve this page
							
							
					
								Quickly fork, edit online, and submit a pull request for this page.
								Requires a signed-in GitHub account. This works well for small changes.
								If you'd like to make larger changes you may want to consider using
								local clone.
							
						Module std.experimental.logger.core
				
				Functions
| Name | Description | 
|---|---|
| 
									globalLogLevel()
								 | This methods get and set the global LogLevel. | 
| 
									isLoggingEnabled(ll, loggerLL, globalLL, condition)
								 | This functions is used at runtime to determine if a LogLevelis
active. The same previously defined version statements are used to disable
certain levels. Again the version statements are associated with a compile
unit and can therefore not disable logging in other compile units.
pure bool isLoggingEnabled()(LogLevel ll) @safe nothrow @nogc | 
| 
									log(ll, condition, args)
								 | This function logs data. | 
| 
									log(ll, args)
								 | This function logs data. | 
| 
									log(condition, args)
								 | This function logs data. | 
| 
									log(args)
								 | This function logs data. | 
| 
									logf(ll, condition, msg, args)
								 | This function logs data in a printf-style manner. | 
| 
									logf(ll, msg, args)
								 | This function logs data in a printf-style manner. | 
| 
									logf(condition, msg, args)
								 | This function logs data in a printf-style manner. | 
| 
									logf(msg, args)
								 | This function logs data in a printf-style manner. | 
| 
									sharedLog()
								 | This property sets and gets the default Logger. | 
| 
									stdThreadLocalLog()
								 | This function returns a thread unique Logger, that by default
propergates all data logged to it to thesharedLog. | 
Classes
| Name | Description | 
|---|---|
| 
									Logger
								 | This class is the base of every logger. In order to create a new kind of
logger a deriving class needs to implement the writeLogMsgmethod. By
default this is not thread-safe. | 
| 
									StdForwardLogger
								 | The StdForwardLoggerwill always forward anything to the sharedLog. | 
Enums
| Name | Description | 
|---|---|
| 
									LogLevel
								 | There are eight usable logging level. These level are all, trace,
info, warning, error, critical, fatal, and off.
If a log function with LogLevelis called the shutdown handler of
that logger is called. | 
Templates
| Name | Description | 
|---|---|
| 
									defaultLogFunction
								 | This template provides the global log functions with the LogLevelis encoded in the function name. | 
| 
									defaultLogFunctionf
								 | This template provides the global printf-style log functions with
theLogLevelis encoded in the function name. | 
| 
									moduleLogLevel
								 | This template returns the LogLevelnamed "logLevel" of typeLogLeveldefined in a user defined module where the filename has the
suffix "loggerconfig.d". ThisLogLevelsets the minimalLogLevelof the module. | 
Manifest constants
| Name | Type | Description | 
|---|---|---|
| isLoggingActive | This compile-time flag is trueif logging is not statically disabled. | |
| isLoggingActiveAt | This template evaluates if the passed LogLevelis active.
The previously described version statements are used to decide if theLogLevelis active. The version statements only influence the compile
unit they are used with, therefore this function can only disable logging this
specific compile unit. | |
| moduleLogLevel | This template returns the LogLevelnamed "logLevel" of typeLogLeveldefined in a user defined module where the filename has the
suffix "loggerconfig.d". ThisLogLevelsets the minimalLogLevelof the module. | 
Aliases
Authors
License
					Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.