7 More Discussions You Might Find Interesting
1. UNIX and Linux Applications
Does anyone know why VLC 2.0.1 is not in rpmfusion yet? VLC 2.0.1 was released over 2 months ago.
VideoLAN - News (0 Replies)
Discussion started by: cokedude
0 Replies
2. Shell Programming and Scripting
Heya everyone I'm having trouble trying to work this out use to work but now it come up with a error. If anyone could help please :)
#!/bin/bash
Movies='/home/yoda/Videos'
cd $Movies
cvlc ls | sed -n "$((RANDOM%$(ls | wc -l)+1))p"
Error
yoda@ubuntu:~$ ./Movieback
02... (1 Reply)
Discussion started by: jtsmith90
1 Replies
3. Ubuntu
I'm I able to make vlc or mplayer transparent.
If so how can i do it please.
thanks in advance josh (0 Replies)
Discussion started by: jtsmith90
0 Replies
4. Linux
hello friends
i have tried follwoing the instructions
efore you proceed to install VLC you may want remove the pre-installed media players.
sudo yum remove pdvdlinux mplayer\*
sed /pcmmvp/d -i $HOME/.config/xfce4/desktop/group-app.xml
To install VLC just add both repositories and use... (0 Replies)
Discussion started by: garethsays
0 Replies
5. Shell Programming and Scripting
Hi,
New member here looking for help. This might not be a post for the 'VERY basics' section, so feel free to move it to somewhere more appropriate.
I've created a script that searches my computer for video files, creates a list of these files, and selects a number of random entries to play in... (2 Replies)
Discussion started by: uncertain
2 Replies
6. Linux
Hai,
can you please give me the link to download "vlc player" for red hat 9. I found it for Fedora but there is some problem in installation.
Can you please give me the link for red hat. I shalll then download it from there !!! (3 Replies)
Discussion started by: nsharath
3 Replies
7. UNIX for Dummies Questions & Answers
can some one please help me here i seem to be having trouble changing Vlc's skin to WMP11
i have VLC media player 0.7.2
i downloaded the WMP11 skin from a download site
i looked for vlc skin instructions and they said i should use vlc -i and put WMP11 in roots home directly
well there are... (1 Reply)
Discussion started by: Meomix
1 Replies
LEARN ABOUT DEBIAN
moosex::log::log4perl
MooseX::Log::Log4perl(3pm) User Contributed Perl Documentation MooseX::Log::Log4perl(3pm)
NAME
MooseX::Log::Log4perl - A Logging Role for Moose based on Log::Log4perl
SYNOPSIS
package MyApp;
use Moose;
with 'MooseX::Log::Log4perl';
sub something {
my ($self) = @_;
$self->log->debug("started bar"); ### logs with default class catergory "MyApp"
...
$self->log('special')->info('bar'); ### logs with category "special"
...
$self->log('.special')->info('bar'); ### logs with category "MyApp.special"
$self->log('::special')->info('bar');### logs with category "MyApp.special"
}
DESCRIPTION
A logging role building a very lightweight wrapper to Log::Log4perl for use with your Moose classes. The initialization of the Log4perl
instance must be performed prior to logging the first log message. Otherwise the default initialization will happen, probably not doing
the things you expect.
For compatibility the "logger" attribute can be accessed to use a common interface for application logging.
Using the logger within a class is as simple as consuming a role:
package MyClass;
use Moose;
with 'MooseX::Log::Log4perl';
sub dummy {
my $self = shift;
$self->log->info("Dummy log entry");
}
The logger needs to be setup before using the logger, which could happen in the main application:
package main;
use Log::Log4perl qw(:easy);
use MyClass;
BEGIN { Log::Log4perl->easy_init() };
my $myclass = MyClass->new();
$myclass->log->info("In my class"); # Access the log of the object
$myclass->dummy; # Will log "Dummy log entry"
EVEN SIMPLER USE
For simple logging needs use MooseX::Log::Log4perl::Easy to directly add log_<level> methods to your class instance.
$self->log_info("Dummy");
USING WITH MOUSE INSTEAD OF MOOSE
As this module is using Any::Moose, you can use it with Mouse instead of Moose too.
This will allow to simple use it as documented above in a Mouse based application, like shown in the example below:
This is your class consuming the MooseX::Log::Log4perl role.
package MyCat;
use Mouse;
with 'MooseX::Log::Log4perl';
sub catch_it {
my $self = shift;
$self->log->debug("Say Miau");
}
Which can be simply used in your main application then.
package main;
use MyCat;
use Log::Log4perl qw(:easy);
BEGIN { Log::Log4perl->easy_init() };
my $log = Log::Log4perl->get_logger();
$log->info("Application startup...");
MyCat->new()->catch_it(); ### Will log "Dummy dodo"
ACCESSORS
logger
The "logger" attribute holds the Log::Log4perl object that implements all logging methods for the defined log levels, such as "debug" or
"error". As this method is defined also in other logging roles/systems like MooseX::Log::LogDispatch this can be thought of as a common
logging interface.
package MyApp::View::JSON;
extends 'MyApp::View';
with 'MooseX:Log::Log4perl';
sub bar {
$self->logger->info("Everything fine so far"); # logs a info message
$self->logger->debug("Something is fishy here"); # logs a debug message
}
log([$category])
Basically the same as logger, but also allowing to change the log category for this log message. If the category starts with a "+", we pre-
pend the current class (what would have been the category if you didn't specify one).
if ($myapp->log->is_debug()) {
$myapp->log->debug("Woot"); # category is class myapp
}
$myapp->log("TempCat")->info("Foobar"); # category TempCat
$myapp->log->info("Grumble"); # category class again myapp
$myapp->log(".TempCat")->info("Foobar"); # category myapp.TempCat
$myapp->log("::TempCat")->info("Foobar"); # category myapp.TempCat
SEE ALSO
Log::Log4perl, Moose, MooseX::LogDispatch
BUGS AND LIMITATIONS
Please report any bugs or feature requests to "bug-moosex-log4perl@rt.cpan.org", or through the web interface at <http://rt.cpan.org>.
Or come bother us in "#moose" on "irc.perl.org".
AUTHOR
Roland Lammel "<lammel@cpan.org>"
Inspired by the work by Chris Prather "<perigrin@cpan.org>" and Ash Berlin "<ash@cpan.org>" on MooseX::LogDispatch
CONTRIBUTORS
In alphabetical order:
Michael Schilli "<m@perlmeister.com>" for Log::Log4perl and suggestions in the interface.
Tim Bunce "<TIMB@cpan.org>" for corrections in the MooseX::Log::Log4perl::Easy module.
LICENSE AND COPYRIGHT
Copyright (c) 2008-2012, Roland Lammel "<lammel@cpan.org>", http://www.quikit.at
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
perl v5.14.2 2012-06-27 MooseX::Log::Log4perl(3pm)