package Cpanel::Easy::Utils::Logger;

# cpanel10 - Cpanel/Easy/Utils/Logger.pm   Copyright(c) 2005-2007 cPanel, Inc.
#                                                           All rights Reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cpanel license. Unauthorized copying is prohibited

use strict;
use warnings;
no warnings qw(redefine);
use Cpanel::Logger ();

sub log_warn {
    my ( $self, $maketext ) = @_;

    Cpanel::Logger::cplog( $self->maketext( @{$maketext} ), 'warn', caller, ( $self->{'stack_trace'} || $self->get_param('stack') ) );
}

sub log_die {
    my ( $self, $maketext ) = @_;

    Cpanel::Logger::cplog( $self->maketext( @{$maketext} ), 'die', caller, ( $self->{'stack_trace'} || $self->get_param('stack') ) );
}

1;
