App-Cme
view release on metacpan or search on metacpan
=over
=item -model-dir
Specify an alternate directory to find model files. Mostly useful for
tests.
=item -root-dir
Specify a pseudo root directory to read and write the configuration
files. (Actual default directory and file names depends on the model
(See C<-model> option). For instance, if you specify C<~/mytest>, the
C</etc/ssh/sshd_config> files will be written in C<~/mytest/etc/ssh/>
directory.
=item -stack-trace
Provides a full stack trace when exiting on error.
=item -try-app-as-model
When set, try to load a model using directly the application name specified as 3rd parameter
on the command line. Experimental.
=back
=head1 Embedding cme
You can use cme from another program by using C<-ui simple>
option. This way you will be able to send command on the standard input
of C<cme> and get the results from the standard output.
=head1 Logging
All Config::Model logging is now based on L<Log::Log4perl>.
Logging can be configured in the following files:
=over
=item *
~/.log4config-model
=item *
/etc/log4config-model.conf
=back
A sample of a C<.log4config-model> is provided in contrib directory in C<Config::Model>
distribution of on L<github|https://github.com/dod38fr/config-model/blob/master/contrib/log4config-model>
Without these files, the following Log4perl config is used:
log4perl.rootLogger=WARN, Screen
log4perl.logger.Model.Legacy = INFO, SimpleScreen
log4perl.additivity.Model.Legacy = 0
log4perl.appender.Screen = Log::Log4perl::Appender::Screen
log4perl.appender.Screen.stderr = 0
log4perl.appender.Screen.layout = Log::Log4perl::Layout::PatternLayout
log4perl.appender.Screen.layout.ConversionPattern = %M %m (line %L)%n
log4perl.appender.SimpleScreen = Log::Log4perl::Appender::Screen
log4perl.appender.SimpleScreen.stderr = 0
log4perl.appender.SimpleScreen.layout = Log::Log4perl::Layout::PatternLayout
log4perl.appender.SimpleScreen.layout.ConversionPattern = %p: %m%n
log4perl.oneMessagePerAppender = 1
Log4perl uses the following categories:
=over
=item Anything
=item Anything::Change
Trace change notification through configuration tree and instance.
=item Backend
=item Backend::Debian::Dpkg
=item Backend::Debian::Dpkg::Control
=item Backend::Debian::Dpkg::Copyright
=item Backend::Fstab
=item Backend::IniFile
=item Backend::PlainFile
=item Backend::ShellVar
=item Backend::Yaml
=item FuseUI
=item Instance
=item Loader
=item Model::Searcher
=item Tree::Element::CheckList
=item Tree::Element::Id
=item Tree::Element::Id::Hash
=item Tree::Element::Id::List
=item Tree::Element::Value
=item Tree::Element::Value::Dependency
=item Tree::Node
=item Tree::Node::Warped
=item ValueComputer
=item Warper
( run in 2.794 seconds using v1.01-cache-2.11-cpan-8f98c5d2c55 )