aboutsummaryrefslogtreecommitdiff
path: root/files/pl/web/api/console/log/index.html
blob: 0f18916b5a5a2ae139642c7cd3bcd71ac35b53e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
title: Console.log()
slug: Web/API/Console/log
translation_of: Web/API/Console/log
---
<div>{{APIRef("Console API")}}{{Non-standard_header}}</div>

<p>Wyświetla tekst w konsoli.</p>

<p>{{AvailableInWorkers}}</p>

<h2 id="Syntax">Syntax</h2>

<pre class="syntaxbox">console.log(<em>obj1</em> [, <em>obj2</em>, ..., <em>objN</em>]);
console.log(<em>msg</em> [, <em>subst1</em>, ..., <em>substN</em>]);
</pre>

<h2 id="Parameters">Parameters</h2>

<dl>
 <dt><code>obj1</code> ... <code>objN</code></dt>
 <dd>Lista obiektów JavaScript do wyświelenia. Podane obiekty są kolejno dołączane i przekazywane na wyjście.</dd>
 <dt><code>msg</code></dt>
 <dd>String JavaScript zawierający zero lub więcej stringów podmieniających.</dd>
 <dt><code>subst1</code> ... <code>substN</code></dt>
 <dd>Obiekt JavaScript w którym zastępowane są stringi podmieniające z msg.  Daje Ci to dodatkową kontrolę nad formatem.</dd>
</dl>

<p>Zobacz również <a href="/en-US/docs/DOM/console#Outputting_text_to_the_console">Outputting text to the console</a> w dokumentacji {{domxref("console")}}.</p>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specyfikacja</th>
   <th scope="col">Status</th>
   <th scope="col">Komentarz</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName("Console API", "#consolelogobject--object-", "console.log()")}}</td>
   <td>{{Spec2("Console API")}}</td>
   <td>Początkowa definicja</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p> </p>

<div class="hidden">
<p>The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>
</div>

<p>{{Compat("api.Console.log")}}</p>

<p> </p>

<h2 id="Zobacz_również">Zobacz również</h2>

<ul>
 <li><a class="external" href="http://www.opera.com/dragonfly/documentation/console/">Opera Dragonfly documentation: Console</a></li>
 <li><a class="external" href="http://msdn.microsoft.com/library/gg589530">MSDN: Using the F12 Tools Console to View Errors and Status</a></li>
 <li><a href="http://getfirebug.com/wiki/index.php/Console_API">Firebug wiki: Console API</a> - Firebug supports additional features in its console.log() implementation, such as <a href="http://www.softwareishard.com/blog/firebug/firebug-tip-styled-logging/">styled logging</a>.</li>
 <li><a href="http://nodejs.org/docs/latest/api/console.html#console_console_log_data">NodeJS: Console API</a></li>
</ul>