Title: LogStore
Author: wyrfel
Published: <strong>2011-يىلى 28-فېۋرال</strong>
Last modified: 2011-يىلى 28-فېۋرال

---

قىستۇرما ئىزدە

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/logstore.svg)

# LogStore

 يازغۇچى [wyrfel](https://profiles.wordpress.org/wyrfel/)

[چۈشۈر](https://downloads.wordpress.org/plugin/logstore.0.1.2.zip)

 * [تەپسىلاتلار](https://ug.wordpress.org/plugins/logstore/#description)
 * [باھالاشلار](https://ug.wordpress.org/plugins/logstore/#reviews)
 *  [ئورنىتىش](https://ug.wordpress.org/plugins/logstore/#installation)
 * [ئىجادىيەت](https://ug.wordpress.org/plugins/logstore/#developers)

 [قوللاش](https://wordpress.org/support/plugin/logstore/)

## چۈشەندۈرۈش

LogStore can be used to log (important) data from within your plugin.
 It provides
a simple interface to log entries and a friendly administration interface for viewing
and managing the log entries.

While LogStore can be used to log debug output or system events, it’s main intention
is to log more extensive data, such as:

 * system emails sent your users
 * data received from remote API calls

### Usage

To use LogStore in your plugin, add the following line to your plugin’s ›plugins_loaded‹
callback function:

    ```
    if (class_exists('LogStore')) $this->log = new LogStore('slug', __('Title'));
    ```

 * The ›slug‹ should be a unique identifier for your logger.
 * The ›Title‹ will be the title used in menu entries, options and page titles.

Once that’s done you can then start logging your data from anywhere within your 
plugin by using the following:

    ```
    if (!empty($this->log)) $this->log->log(__('My log message'), $my_log_data, 'status', 'tag');
    ```

 * ›My log message.‹ is any arbitrary message to describe your log entry.
 * $my_log_data is the extended data you want to log. This can be either an array
   or string.
 * ›status‹ is one of ›none‹, ›ok‹, ›warn‹, ›critical‹ or ›fatal‹.
 * ›tag‹ can be any kind of singular tag to further classification to your log entries.
   add

If you use LogStore in your plugin, you should check for it’s presence in

 * your ›plugins_loaded‹ callback
 * your plugin activation callback

You should either make LogStore use optional or notify the user that they need to
install LogStore for your plugin to work properly.

### Plugin Hooks

In the following hooks, `*myname*` stands for the name with which you instanciated
the LogStore class.

#### Action Hooks

 * `logstore_init-*myname*` – runs during the execution of WP’s `init` action hook,
   passes a single boolean parameter indicating if logging is active or inactive
   for this logger

#### Filter Hooks

 * `logstore_new_entry-*myname*` – runs during the creation of a new entry, passes
   a single array containing all values for that entry (›time‹, ›message‹, ›data‹,›
   status‹ and ›tag‹)
 * `logstore_entry-*myname*` – runs before displaying an entry on screen, passes
   a single array containting all values for the entry (›time‹, ›message‹, ›data‹,›
   status‹ and ›tag‹)
 * `logstore_format_entry_data-*myname*` – runs before displaying the formatted 
   data on screen, passes the formatted data as string

### Further Notes

Please note that the ›bulk actions‹ in the log viewer are currently not
 working.

## ئېكران كەسمىسى

[⌊This is LogStore's main admin screen. Here the user can activate or deactivate
the logging for individual loggers.⌉⌊This is LogStore's main admin screen. Here 
the user can activate or deactivate the logging for individual loggers.⌉[

This is LogStore’s main admin screen. Here the user can activate or deactivate the
logging for individual loggers.

[⌊This is LogStore's admin menu. A submenu entry is created for each individual 
registered logger, no matter if active or not.⌉⌊This is LogStore's admin menu. A
submenu entry is created for each individual registered logger, no matter if active
or not.⌉[

This is LogStore’s admin menu. A submenu entry is created for each individual registered
logger, no matter if active or not.

[⌊This is the log view for a logger. Individual entries can be deleted, it can be
sorted, uses pagination and the whole log can be wiped.⌉⌊This is the log view for
a logger. Individual entries can be deleted, it can be sorted, uses pagination and
the whole log can be wiped.⌉[

This is the log view for a logger. Individual entries can be deleted, it can be 
sorted, uses pagination and the whole log can be wiped.

[⌊This is the log entry view where you can view the individual log entries. The 
data is presented both in a nicely formatted and in raw form.⌉⌊This is the log entry
view where you can view the individual log entries. The data is presented both in
a nicely formatted and in raw form.⌉[

This is the log entry view where you can view the individual log entries. The data
is presented both in a nicely formatted and in raw form.

## ئورنىتىش

 1. Upload the `logstore` folder to the `/wp-content/plugins/` directory

## FAQ

None, yet.

## باھالاشلار

بۇ قىستۇرمىغا تېخى باھا يېزىلمىدى.

## تۆھپىكار ۋە ئىجادكار

«LogStore» كودى ئوچۇق يۇمشاق دېتال. تۆۋەندىكى كىشىلەر بۇ قىستۇرمىغا تۆھپە قوشقان.

تۆھپىكار

 *   [ wyrfel ](https://profiles.wordpress.org/wyrfel/)

[«LogStore» نى تىلىڭىزغا تەرجىمە قىلىڭ](https://translate.wordpress.org/projects/wp-plugins/logstore)

### ئىجادىيەتكە قىزىقامسىز؟

[كودقا كۆز يۈگۈرتۈپ](https://plugins.trac.wordpress.org/browser/logstore/)، [SVN خەزىنە](https://plugins.svn.wordpress.org/logstore/)
تەكشۈرۈپ ياكى [RSS](https://plugins.trac.wordpress.org/log/logstore/?limit=100&mode=stop_on_copy&format=rss)
ئارقىلىق [ئىجادىيەت خاتىرىسى](https://plugins.trac.wordpress.org/log/logstore/)گە
مۇشتەرى بولغىلى بولىدۇ.

## ئۆزگىرىش خاتىرىسى

#### 0.1.2

 * Readme fixes,
 * move to new repository

#### 0.1.1

 * Readme fixes

#### 0.1

 * Initial release

## Meta

 *  Version **0.1.2**
 *  ئاخىرقى يېڭىلانغان ۋاقىت **15 يىل بۇرۇن**
 *  ئاكتىپ ئورنىتىش سانى **10 دىن ئاز**
 *  WordPress نەشرى ** 3.1 ياكى يۇقىرى **
 *  **3.1.4** دا سىنالغان
 *  تىل
 * [English (US)](https://wordpress.org/plugins/logstore/)
 * بەلگە
 * [development](https://ug.wordpress.org/plugins/tags/development/)[log](https://ug.wordpress.org/plugins/tags/log/)
   [logging](https://ug.wordpress.org/plugins/tags/logging/)[meta](https://ug.wordpress.org/plugins/tags/meta/)
 *  [ئالىي كۆرۈنۈش](https://ug.wordpress.org/plugins/logstore/advanced/)

## دەرىجە

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/logstore/reviews/#new-post)

[بارلىق ئىنكاسنى كۆرسەت](https://wordpress.org/support/plugin/logstore/reviews/)

## تۆھپىكار

 *   [ wyrfel ](https://profiles.wordpress.org/wyrfel/)

## قوللاش

چۈشەندۈرۈشىڭىز بارمۇ؟ ياردەم لازىممۇ؟

 [قوللاش مۇنبىرىنى كۆرسەت](https://wordpress.org/support/plugin/logstore/)