<commit_before># --
# Kernel/System/Log.pm - log wapper 
# Copyright (C) 2001-2003 <NAME> <<EMAIL>>
# --
# $Id: Log.pm,v 1.11 2003-01-03 00:30:28 martin Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see 
# the enclosed file COPYING for license information (GPL). If you 
# did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
# --

package Kernel::System::Log;
use IPC::SysV qw(IPC_PRIVATE IPC_RMID S_IRWXU);

use strict;

use vars qw($VERSION);
$VERSION = '$Revision: 1.11 $ ';
$VERSION =~ s/^.*:\s(\d+\.\d+)\s.*$/$1/g;

# --
sub new {
    my $Type = shift;
    my %Param = @_;

    # allocate new hash for object
    my $Self = {}; 
    bless ($Self, $Type);

    # --
    # get config object 
    # --
    if (!$Param{ConfigObject}) {
        die "Got no ConfigObject!"; 
    }
    # --
    # check log prefix 
    # --
    $Self->{LogPrefix} = $Param{LogPrefix} || '?LogPrefix?';
    $Self->{LogPrefix} .= '-'.$Param{ConfigObject}->Get('SystemID');
    # --
    # load log backend
    # --
    my $GeneratorModule = $Param{ConfigObject}->Get('LogModule')
      || 'Kernel::System::Log::SysLog';
    eval "require $GeneratorModule";
    # --
    # create backend handle
    # --
    $Self->{Backend} = $GeneratorModule->new(%Param);
    # --
    # ipc stuff
    # --
    $Self->{SystemID} = $Param{ConfigObject}->Get('SystemID');
    $Self->{IPCKey} = "444423$Self->{SystemID}";
    $Self->{IPCSize} = 8*1024;
    # init session data mem
    $Self->{Key} = shmget($Self->{IPCKey}, $Self->{IPCSize}, 0777 | 0001000) || die $!;

    return $Self;
}
# --
sub Log { 
    my $Self = shift;
    my %Param = @_;
    my $Priority = $Param{Priority} || 'debug';
    my $Message = $Param{MSG} || $Param{Message} || '???';<commit_msg>removed log size from 80k to 40k<commit_after># --
# Kernel/System/Log.pm - log wapper 
# Copyright (C) 2001-2003 <NAME> <<EMAIL>>
# --
# $Id: Log.pm,v 1.12 2003-01-03 21:10:32 martin Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see 
# the enclosed file COPYING for license information (GPL). If you 
# did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
# --

package Kernel::System::Log;
use IPC::SysV qw(IPC_PRIVATE IPC_RMID S_IRWXU);

use strict;

use vars qw($VERSION);
$VERSION = '$Revision: 1.12 $ ';
$VERSION =~ s/^.*:\s(\d+\.\d+)\s.*$/$1/g;

# --
sub new {
    my $Type = shift;
    my %Param = @_;

    # allocate new hash for object
    my $Self = {}; 
    bless ($Self, $Type);

    # --
    # get config object 
    # --
    if (!$Param{ConfigObject}) {
        die "Got no ConfigObject!"; 
    }
    # --
    # check log prefix 
    # --
    $Self->{LogPrefix} = $Param{LogPrefix} || '?LogPrefix?';
    $Self->{LogPrefix} .= '-'.$Param{ConfigObject}->Get('SystemID');
    # --
    # load log backend
    # --
    my $GeneratorModule = $Param{ConfigObject}->Get('LogModule')
      || 'Kernel::System::Log::SysLog';
    eval "require $GeneratorModule";
    # --
    # create backend handle
    # --
    $Self->{Backend} = $GeneratorModule->new(%Param);
    # --
    # ipc stuff
    # --
    $Self->{SystemID} = $Param{ConfigObject}->Get('SystemID');
    $Self->{IPCKey} = "444423$Self->{SystemID}";
    $Self->{IPCSize} = 4*1024;
    # init session data mem
    $Self->{Key} = shmget($Self->{IPCKey}, $Self->{IPCSize}, 0777 | 0001000) || die $!;

    return $Self;
}
# --
sub Log { 
    my $Self = shift;
    my %Param = @_;
    my $Priority = $Param{Priority} || 'debug';
    my $Message = $Param{MSG} || $Param{Message} || '???';
{'fraction_non_alphanumeric': 0.20286597358808653, 'fraction_numerical': 0.02978364709187974, 'mean_word_length': 2.666323377960865, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5245393', 'n_tokens_mistral': 1403, 'n_tokens_neox': 1306, 'n_words': 294}