
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
Package to manipulate logs of application FcPhp
Composer:
$ composer require 00f100/fcphp-log
or add in composer.json
{
"require": {
"00f100/fcphp-log": "*"
}
}
Create logs easy! If $debug = false in constructor, just $log->error() and $log->warning() works...
<?php
use \FcPhp\Log\Log;
/*
Method to return instance of Log
@param string $directoryOutput Directory to write logs
@param string|bool $dateFormat Format of date to print log. If `false` not print date
@param string $extension Extension of file log
@param bool $debug Enable debug mode
@return FcPhp\Log\Interfaces\ILog
Log::getInstance(string $directoryOutput, $dateFormat = 'Y-m-d H:i:s', string $extension = 'log', bool $debug = false) :ILog
*/
$log = Log::getInstance('var/log', 'Y-m-d H:i:s', 'log', true);
// To error logs
$log->error('message of error');
// Print log: var/log/error.log
// [2018-06-16 04:06:25] message of error
// To warning logs
$log->warning('message of warning');
// Print log: var/log/warning.log
// [2018-06-16 04:06:25] message of warning
// To debug
$log->debug('message debug');
// Print log: var/log/debug.log
// [2018-06-16 04:06:25] message debug
// To many types
$log->fooBar('message foo bar');
// Print log: var/log/fooBar.log
// [2018-06-16 04:06:25] message foo bar
<?php
use \FcPhp\Log\Log;
$log = Log::getInstance('var/log', 'Y-m-d H:i:s', 'log', true);
$log->customLog(function(string $dateTime, string $logText, string $breakLine) {
return $logText . ' ' . $dateTime . $breakLine;
});
$log->error('Custom message, custom format');
// Print log: var/log/error.log
// Custom message, custom format [2018-06-16 04:06:25]
FAQs
Logs for application fcphp
We found that 00f100/fcphp-log demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.