Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoggerFilesystem #14

Closed
kbond opened this issue Jul 12, 2022 · 0 comments
Closed

LoggerFilesystem #14

kbond opened this issue Jul 12, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@kbond
Copy link
Member

kbond commented Jul 12, 2022

  • logs operations
  • will require filesystems all be named for log messages NamedFilesystem #16
  • accepts a config map that maps methods -> levels
// default
new LogFilesystem($inner, $logger, [
    'write' => LogLevel::INFO, // applies to all "write" operations
    'read' => LogLevel::DEBUG,
]);

// customize
new LogFilesystem($inner, $logger, [
    'write' => LogLevel::INFO,
    'mkdir' => LogLevel::INFO,
    'delete' => LogLevel::INFO,
    'move' => LogLevel::INFO,
    'copy' => LogLevel::INFO,
    'chmod' => LogLevel::INFO,
    'read' => null, // disable logging
]);
@kbond kbond added the enhancement New feature or request label Jul 12, 2022
@kbond kbond transferred this issue from kbond/skunkworks Jul 19, 2022
@kbond kbond mentioned this issue Jul 19, 2022
@kbond kbond changed the title [filesystem] LogAdapter LogFilesystem Jul 23, 2022
@kbond kbond changed the title LogFilesystem LoggerFilesystem Jul 23, 2022
@kbond kbond closed this as completed Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant