Create a new Domain object.
Option | Defined in | Default |
---|---|---|
name | Log::Report::Minimal::Domain | <required> |
The import is automatically called when the package is compiled. For all but one packages in your distribution, it will only contain the name of the DOMAIN. For one package, it will contain configuration information. These %options are used for all packages which use the same DOMAIN. See chapter Configuring below.
Option | Defined in | Default |
---|---|---|
config |
| |
context_rules |
| |
formatter |
| |
native_language | 'en_US' | |
translator |
| |
where | Log::Report::Minimal::Domain | <required> |
Returns the current default translation context settings as HASH. You should not modify the content of that HASH: change it by called setContext() or updateContext().
Helper method, which simply parses the content $filename into a HASH to be
used as parameters to configure(). The filename must end on '.pl',
to indicate that it uses perl syntax (can be processed with Perl's do
command) or end on '.json'. See also chapter Configuring below.
Currently, this file can be in Perl native format (when ending on .pl
)
or JSON (when it ends with .json
). Various modules may explain parts
of what can be found in these files, for instance
Log::Report::Translator::Context.
Temporary set the default translation context for messages. This is used
when the message is created without a _context
parameter. The context
can be retrieved with defaultContext().
Contexts are totally ignored then there are no context_rules
. When
you do not wish to change settings, you may simply provide a HASH.
use Log::Report 'my-domain', context_rules => {};
[1.10] Make changes and additions to the active context (see setContext()).
Translate the $message into the $language.