Changeset e0c836e8 in mainline for uspace/lib/c/generic/io/logctl.c


Ignore:
Timestamp:
2012-09-07T08:29:43Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
42bde6a
Parents:
70253688
Message:

Add comments to logging interface in libc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/logctl.c

    r70253688 re0c836e8  
    6565}
    6666
    67 
     67/** Set default reported log level (global setting).
     68 *
     69 * This setting affects all logger clients whose reporting level was
     70 * not yet changed.
     71 *
     72 * If logging level of client A is changed with logctl_set_log_level()
     73 * to some level, this call will have no effect at that client's reporting
     74 * level. Even if the actual value of the reporting level of client A is
     75 * the same as current (previous) default log level.
     76 *
     77 * @param new_level New reported logging level.
     78 * @return Error code of the conversion or EOK on success.
     79 */
    6880int logctl_set_default_level(log_level_t new_level)
    6981{
     
    8193}
    8294
     95/** Set reported log level of a single log.
     96 *
     97 * @see logctl_set_default_level
     98 *
     99 * @param logname Log name.
     100 * @param new_level New reported logging level.
     101 * @return Error code of the conversion or EOK on success.
     102 */
    83103int logctl_set_log_level(const char *logname, log_level_t new_level)
    84104{
Note: See TracChangeset for help on using the changeset viewer.