Singleton in control of what is supposed to get logged, how it's to be logged and where it is to be logged We uses a dynamic variable in case multiple threads are used as can be in scalatests
Attributes
- Companion
- class
- Deprecated
-
[Since version Chisel 7.0.0]All APIs in package firrtl are deprecated. - Source
- Logger.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Logger.type
Members list
Type members
Classlikes
a class for managing capturing logging output in a string buffer
a class for managing capturing logging output in a string buffer
Attributes
- Source
- Logger.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
Clears the logging data in the string capture buffer if it exists
Clears the logging data in the string capture buffer if it exists
Attributes
- Returns
-
The logging data if it exists
- Source
- Logger.scala
Attributes
- Source
- Logger.scala
Set a scope for this logger based on available annotations
Set a scope for this logger based on available annotations
Type parameters
- A
-
return type of the code block
Value parameters
- codeBlock
-
some Scala code over which to define this scope
- options
-
a sequence annotations
Attributes
- Returns
-
the original return of the code block
- Source
- Logger.scala
Set a scope for this logger based on available annotations
Set a scope for this logger based on available annotations
Type parameters
- A
-
return type of the code block
Value parameters
- codeBlock
-
some Scala code over which to define this scope
- options
-
LoggerOptions to use
Attributes
- Returns
-
the original return of the code block
- Source
- Logger.scala
This resets everything in the current Logger environment, including the destination use this with caution. Unexpected things can happen
This resets everything in the current Logger environment, including the destination use this with caution. Unexpected things can happen
Attributes
- Source
- Logger.scala
Adds a list of of className, loglevel tuples to the global (dynamicVar) See testPackageNameMatch for a description of how class name matching works
Adds a list of of className, loglevel tuples to the global (dynamicVar) See testPackageNameMatch for a description of how class name matching works
Value parameters
- namesToLevel
-
a list of tuples (class name, log level)
Attributes
- Source
- Logger.scala
Sets the logging destination to Console.out
This sets the global logging level
This sets the global logging level
Value parameters
- level
-
The desired global logging level
Attributes
- Source
- Logger.scala
This sets the logging level for a particular class or package The package name must be general to specific. I.e. package1.package2.class package1.package2 package1 Will work. package2.class will not work if package2 is within package1
This sets the logging level for a particular class or package The package name must be general to specific. I.e. package1.package2.class package1.package2 package1 Will work. package2.class will not work if package2 is within package1
Value parameters
- classOrPackageName
-
The string based class name or
- level
-
The desired global logging level
Attributes
- Source
- Logger.scala
Set the log level based on a class type
Set the log level based on a class type
Value parameters
- classType
-
Kind of class
- level
-
log level to set
Attributes
- Example
-
setLevel(classOf[SomeClass], LogLevel.Debug) - Source
- Logger.scala
Set logger options based on the content of an AnnotationSeq
Set logger options based on the content of an AnnotationSeq
Value parameters
- inputAnnotations
-
annotation sequence containing logger options
Attributes
- Source
- Logger.scala
Set logger options
Set the logging destination to a file name
Set the logging destination to a file name
Value parameters
- fileName
-
destination name
Attributes
- Source
- Logger.scala
Set the logging destination to a print stream
Set the logging destination to a print stream
Value parameters
- stream
-
destination stream
Attributes
- Source
- Logger.scala